Questions tagged [facebook-authentication]

Facebook authentication is popular sign in method for many websites using Facebook credentials.

Facebook authentication is popular sign in method for many websites using Facebook credentials. This cab be implemented with many SDKs like PHP, C#, android, etc.

816 questions
10
votes
2 answers

Passport-facebook access req object from within callback function

On the callback from Facebook for nodejs passport authentication, how do you get the req object within the callback? passport.use(new FacebookStrategy({ clientID: 123456789, clientSecret: 'SECRET', callbackURL:…
9
votes
5 answers

PHP SDK 3.1.1 getUser() sometimes return 0

This is driving me crazy >=( $facebook->getUser() works well sometimes, but sometimes returns 0 Here is my code: require 'fbapi/facebook.php'; $facebook = new Facebook(array( 'appId' => 'xxx', 'secret' => 'xxxxx', )); $user =…
9
votes
2 answers

FirebaseAuthUserCollisionException?

I am using the firebase documentation to use Facebook login my android application. I am successfully able to login users using Google and Twitter. But when i click on Login with Facebook, the button is changing to Logout button. Actually it should…
9
votes
1 answer

"Cookies not enabled error" on some devices

I am working on an app that uses Facebook as an alternate login method to the app's standard account creation flow. On some devices, the web dialog authentication for Facebook is producing the error "Cookies are not enabled on your browser. Please…
TaylorP
  • 1,039
  • 2
  • 13
  • 28
8
votes
3 answers

$facebook->getLogoutUrl(); link doesn't log user out of facebook

My current user story is that user1 is logged into my website and facebook (these accounts are connected etc). User1 logs out of my site but not facebook. After this user2 logs into his account, but the left over session from user1 screws with…
8
votes
2 answers

com.firebase.ui.auth.FirebaseUiException: Provider error - Firebase-UI Authentication Facebook login not working

I am using Firebase-UI authentication using e-mail, facebook, and google providers. E-mail and Google sign in work fine but Facebook sign in is not working. My facebook and firebase dependencies: //Firebase implementation…
8
votes
1 answer

Firebase facebook button android authentication when logged out

I'm using firebase in my android app and facebook SDK for logging-in as well. The only problem I'm facing is that when I log-in with facebook, then log-out, the facebook login button is in the "log-out" state and when I click it, it asks if I want…
Ahmed Ashraf
  • 2,795
  • 16
  • 25
8
votes
2 answers

Facebook MVC 5 ASP.NET Identity - Email is null for certain users

This is a problem i am trying to solve for a month now. (tried any possible article/code out there). In ExternalLoginCallback action, AuthenticationManager.GetExternalLoginInfoAsync() returns a valid object (with all the provider details) but email…
8
votes
1 answer

How to handle API errors in Android app using Facebook 3.0 SDK?

I've developed an Android app which uses Facebook SDK 3.0. On developers.facebook.com its showing a lot of API errors most common ones are : auth.androidauthorizeapp auth.extendssoaccesstoken Can someone tell me what I can do to fix these errors ?…
8
votes
1 answer

Login with extra permission with Facebook SDK 3 for Android

I followed the step of "Create a new Android Project with Facebook Login" section at https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/ The login process is fine. Because I would like to use the native Android button…
8
votes
0 answers

OAuth Facebook Authentication with ASP.NET Web API

So I guess this question is sort of two folds What should I store when granted Facebook OAuth rights into my User Domain Entity (facebook userid? or token? or both or something else) Can I just generally secure the ASP.NET Web API with a…
Max Alexander
  • 5,471
  • 6
  • 38
  • 52
7
votes
4 answers

Facebook javascript SDK FB.login is not working in Facebook iFrame

We are using Facebook JavaScript SDK to authenticate our Facebook application. The application is configured with the Canvas URL as http://facebook.elgifto.com/Home/Index/. Following is the code we are using to authenticate the Facebook user. …
7
votes
1 answer

How to configure a Facebook Application for sub domains

I'm building a Multi-Tenant application and I'm struggling incorporating a Facebook Login into the web application. The tenants are using a sub-domain for…
balexandre
  • 73,608
  • 45
  • 233
  • 342
7
votes
1 answer

Facebook and Google login doesn't work for Android AAB build uploaded to Firebase App Distribution

Solved: The Firebase troubleshooting page has been updated: When you upload an AAB to App Distribution, Google Play automatically resigns the generated APK using a test app signing key certificate. When prompted, you must register your app with API…
7
votes
5 answers

Sign in issue using Facebook Authentication

I'm trying to login from Facebook and Google API, the Google API works fine, the problem arises with Facebook login, everything is setup on the Facebook developers console and my app is live as well. The problem is whenever user clicks on the login…
1 2
3
54 55