facebook-login

Setting up Facebook Login on localhost

强颜欢笑 提交于 2019-12-18 06:55:13
问题 I've been following the steps outlined here to create a Facebook App Login: http://developers.facebook.com/docs/howtos/login/server-side-login/ And am on Step 3. I'm setting this up on localhost for development and then I'll publish to Azure Websites with a different App ID. I'd like to have this working on localhost first though. (I haven't tried this with a non-localhost domain yet.) On my Facebook App configuration page I've set a couple relevant fields: Site URL: http:// localhost : 8052/

How to securely authorize a user via Facebook's Javascript SDK

醉酒当歌 提交于 2019-12-17 23:44:11
问题 I want to let users log in on my website using their Facebook ID without reloading the page. This is why I use Facebook Javascript SDK. This scheme describes the authorization flow with this SDK: At the end of the process I know that the user is logged in and I know their Facebook ID. I can then register them in my database via this ID, and let them use it to log in afterwards. However, this seems terribly insecure. In order to let my server-side script know the user's ID, I have to send it

Facebook PHP SDK 5 :: API 2.4 :: Cross-site request forgery validation failed. Required param “state” missing

∥☆過路亽.° 提交于 2019-12-17 23:43:38
问题 I did a very simple PHP script, just to try to login via Facebook and get an accessToken. But when I try the following code, I get an Exception from the SDK : « Cross-site request forgery validation failed. Required param "state" missing. ». Here is my code : require_once __DIR__ . '/facebook-sdk-v5/autoload.php'; session_start(); $fb = new Facebook\Facebook([ 'app_id' => '{my-own-app-id}', 'app_secret' => '{my-own-app-secret}' ]); // Check to see if we already have an accessToken ? if (isset

Android Facebook SDK: Key hash does not match any stored key hashes when uploading google play

末鹿安然 提交于 2019-12-17 21:51:49
问题 My app uses facebook api for user login. On developing it works fine, but when I uploaded it to google play it stops working. This is the error log: 12-10 20:20:02.488: W/fb4a(:<default>):BlueServiceQueue(17284): Exception during service 12-10 20:20:02.488: W/fb4a(:<default>):BlueServiceQueue(17284): com.facebook.http.protocol.ApiException: Key hash XXXXXXX does not match any stored key hashes. 12-10 20:20:02.488: W/fb4a(:<default>):BlueServiceQueue(17284): at com.facebook.http.protocol

AWS cognito: sign in with usernam/password OR facebook

血红的双手。 提交于 2019-12-17 18:58:34
问题 I want to integrate a pretty standard functionality: give option to user (mobile and web) to either login with email/password or with facebook (google) account with RBAC (different users may have different roles, like users, moderators, admins, creators, etc). Here is basically what I want from sign in: I went through a number of AWS tutorials and other materials. I got some grasp on how to implement it, but I still don't have a full picture. Hope someone can help me here. Here is my current

This app has no Android Key hashes configured. - Login with Facebook SDK

老子叫甜甜 提交于 2019-12-17 15:13:28
问题 I have problem about login with facebook acount in my application. I read to Facebook Doc. And I did all step as Facebook Doc. First in login with facebook acount in app - SUCCESSFUL ! and than logout in application. I want to login again with my facebook acount. But not working !! And I took this Excepiton ! Please help me ! Exception : This app has no Android Key hashes configured.Configure your app key hashes at http:developers.facebook.com/apps/"APP ID" Finaly; I used to part of code for

Facebook API login fails with FB app installed on phone

馋奶兔 提交于 2019-12-17 10:29:35
问题 I am building an app, which is going to have support for facebook. I have downloaded facebook API and their sample called "Hackbook" from original Git repos. The problem is with login - if original FB app is not installed on phone, the login is going through custom dialog and everything works, but if FB app is installed, the Hackbook automatically redirect to original FB app, and then nothing happened. It's impossible to login. I have tested this on five different phones, and always was the

FBSDKAccessToken currentAccessToken nil after quitting app

天涯浪子 提交于 2019-12-17 09:46:31
问题 I am developing an ios app using the Facebook SDK to login. I have set a LogInViewController as the initial View Controller in the Storyboard, from where the user logins using the FB account. I have another ViewController which is loaded correctly once the user logs in. In the AppDelegate file I am checking for currentAccessToken and if it is not nil, I am loading directly the second ViewController, because the user is already logged in. However, the currentAccessToken is always nil if I quit

Native Facebook app does not open with Facebook login in iOS 9

心已入冬 提交于 2019-12-17 07:02:11
问题 I have updated iPhone 6 plus to iOS 9 beta and trying to perform Facebook login but each time its presenting UIWebView with Facebook login form. I have Facebook sdk FB_IOS_SDK_VERSION_STRING @"3.24.0" FB_IOS_SDK_TARGET_PLATFORM_VERSION @"v2.2" And I am using following methods to perform Facebook Login NSArray *permissions = @[@"email",@"user_birthday",@"public_profile"]; FBSessionStateHandler completionHandler = ^(FBSession *session, FBSessionState status, NSError *error) { [self

Native Facebook app does not open with Facebook login in iOS 9

一世执手 提交于 2019-12-17 07:01:06
问题 I have updated iPhone 6 plus to iOS 9 beta and trying to perform Facebook login but each time its presenting UIWebView with Facebook login form. I have Facebook sdk FB_IOS_SDK_VERSION_STRING @"3.24.0" FB_IOS_SDK_TARGET_PLATFORM_VERSION @"v2.2" And I am using following methods to perform Facebook Login NSArray *permissions = @[@"email",@"user_birthday",@"public_profile"]; FBSessionStateHandler completionHandler = ^(FBSession *session, FBSessionState status, NSError *error) { [self