facebook-login

Facebook login window appears and disappears very quickly

梦想与她 提交于 2019-12-10 19:07:54
问题 Recently I've uploaded a piece of code to phpfog and I've come across with a problem which didn't happen locally: When the page loads, it tries to get $idFacebook that is supposed to be set: $idFacebook = $facebook->getUser(); if ($idFacebook) { ... } I'm logged to Facebook, however, the condition fails and the button to login appears: <div class="fb-login-button" data-scope="user_likes,user_photos"></div> The other problem is that when I press the button, it seems that the login window

How to cache Facebook User Info with Facebook Login in IOS App

自作多情 提交于 2019-12-10 17:53:50
问题 I am integrating Facebook SDK 3.1 to my iOS 5 app. After Facebook Login, I have to query like this to get user info NSString *query = @"SELECT uid, name, pic_big,username FROM user where uid = me()"; NSDictionary *queryParam = [NSDictionary dictionaryWithObjectsAndKeys:query, @"q", nil]; [FBRequestConnection startWithGraphPath:@"/fql" parameters:queryParam HTTPMethod:@"GET" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) { .... Now there are two issues with

How to add external login in .net web api 2?

早过忘川 提交于 2019-12-10 16:47:28
问题 I'm trying to add external login with template from MVC5, Web API2 with method Task<IHttpActionResult> AddExternalLogin(AddExternalLoginDTO model) The method need only one parameter ExternalAccessToken - token from FB, Google, ... But ticket for some user data is still null AuthenticationTicket ticket = AccessTokenFormat.Unprotect(model.ExternalAccessToken); Where is the problem? 来源: https://stackoverflow.com/questions/24782969/how-to-add-external-login-in-net-web-api-2

Facebook SDK Login doesn't work on simulator on iOS 10, Xcode 8

Deadly 提交于 2019-12-10 15:48:13
问题 I try to login via the Facebook SDK login system in viewWillAppear like so: override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) if !loggedIn { if let token = FBSDKAccessToken.current() { loggedIn = true self.accessToken = token } else { let login = FBSDKLoginButton() login.center = view.center view.addSubview(login) } } } This does work properly on a real device, but lately on the iOS 10 simulator, using Xcode 8 and Swift 3 it seems to fail. The login button works

posting requires a permission login dialog to appear twice

雨燕双飞 提交于 2019-12-10 15:16:21
问题 I am developing a mobile camera app that allows posting a photo on facebook. The camera app is a stand-alone and does not require facebook login when it starts. However I want to allow posting a picture to facebook. It follows that the first time a user will try uploading an image it will have to go through the permission login dialog twice. I cant find a way to ask the user for access his basic information + posting of an image on his wall with one login dialog. This seems "by design" if you

Facebook Login - If user account is present (and app is not installed) login fails

不打扰是莪最后的温柔 提交于 2019-12-10 15:16:06
问题 I have just found this issue whilst testing my application and it is really starting to annoy me. So what the environment is like is as follows : No Facebook App installed User is logged into iOS System Account (Under settings -> Facebook) When my app attempts to authenticate the user for the first time it provides this wall of text : ( I tried cleaning it up a little) 2014-01-30 15:20:31.439 Unifeed[2140:70b] Session is <FBSession: 0xb74f9e0, state: FBSessionStateClosedLoginFailed,

Facebook:Blank Screen on FB Login

邮差的信 提交于 2019-12-10 13:12:57
问题 suddenly I am getting a strange thing happening in my application when trying to login via facebook. The facebook connect popup dialog will show a blank screen after asking for login details. Normally I would expect to see the window close, and then the site itself would carry on, however it appears to have hung. I am using Javascript SDK on Localhost Here is the code I'm using (copying directly from the facebook documentation): window.fbAsyncInit = function () { FB.init({ appId: fbAppId,

New Facebook SDK Application Unavailable: The applicatioh you are trying to use is either no longer available or access is restricted

非 Y 不嫁゛ 提交于 2019-12-10 12:58:30
问题 New users cannot log in via Facebook, receiving an error message saying: "Application not available: the application you are trying to use is no longer available or access is limited.". Users have no problems accessing with their existing Facebook accounts. 回答1: I get this issue when I create fake/test accounts on facebook. It seems like they take 1-2 hours to review the account before they will let you use the graphAPI. 来源: https://stackoverflow.com/questions/58171374/new-facebook-sdk

wordpress create user from facebook login plugin

…衆ロ難τιáo~ 提交于 2019-12-10 12:00:26
问题 How do I call this function from my wordpress theme. It is supposed to be called when the one who comments logs in via facebook login function. function myfb_do_login() { global $wpdb; // cookie $cookie = get_facebook_cookie(); // get user data $fbuser = get_facebook_user($cookie); $username = sanitize_user($fbuser->first_name); // put everything in nice array $userdata = array( 'user_pass' => wp_generate_password(), 'user_login' => $username, 'user_nicename' => $username, 'user_email' =>

Redirect activity after facebook login

一曲冷凌霜 提交于 2019-12-10 10:47:04
问题 I'm using Android Facebook SDK (4.01) to login to my app with Facebook. The facebook login from my MainActivity succeeds and then I use Intent to procced to next activity. That part works. After that in my new activity (MainLobby) I want to able to logout from facebook and return to my previous MainActivity, by pressing back button. For some reason when I press back the MainLobby closes, but has another MainLobby activity behind it. So I have to press back button twice to get back to