Coder Social home page Coder Social logo

Facebook login (Android SDK & iOS SDK & Web OAuth2) not providing email address to application when user changes email address on Facebook about facebook-android-sdk HOT 6 OPEN

nolimitdev avatar nolimitdev commented on April 27, 2024 3
Facebook login (Android SDK & iOS SDK & Web OAuth2) not providing email address to application when user changes email address on Facebook

from facebook-android-sdk.

Comments (6)

pad01g avatar pad01g commented on April 27, 2024 1

I also have this issue.

(edit)

I am using Facebook as a backend identity provider of AWS Cognito.
AWS Cognito user pool has an immutable option to require email address from Facebook every time user logs in.
User can register to Cognito for the first time by Facebook if Facebook email address is not modified. However, when the user modifies email address on his Facebook account, the user can no longer log in to Cognito because Facebook does not provide email address anymore.
Cognito user pool option is immutable and you cannot loose the condition that requires email address for login, and we end up giving up Facebook as an identity provider this time.
However, we hope to add Facebook login feature if this bug is fixed.

from facebook-android-sdk.

nolimitdev avatar nolimitdev commented on April 27, 2024

I have also published bug here https://developers.facebook.com/community/threads/276984085174740 and also another user immediately wrote I have the same issue. Email exists, access is granted, but field is not provided.. Im wondered that this bug is not catched by Facebook itself. By our logs situation when user grants email scope but email filed is empty takes ages. Year 2015 without errors and since august 2016 many these errors including nowadays. So each user which changes email address is not able correctly login to application which requires email address.

Bug affects both Android & Web login. In case web login I can provide more details immediately...

Facebook after OAuth2 grant dialog redirects to for example https://example.com/my-redir-uri/?granted_scopes=email%2Cpublic_profile&denied_scopes&code=...&state=... as you can see there all looks good in URL - user granted access, granted_scopes contains "email" and denied_scopes is empty, but when exchanging access token for user data with request e.g. https://graph.facebook.com/v16.0/me?fields=id,email,name,first_name,last_name,gender&access_token=... email field is missing in response data!

I hope Android can be investigated by Facebook. But I can confirm users with changed email address are not able to login to our app using Android Facebook SDK because such as in web login also in android login email field is missing.

from facebook-android-sdk.

nolimitdev avatar nolimitdev commented on April 27, 2024

UPDATE: Btw I can confirm the same problem is with iOS SDK. So all 3 platforms (Android SDK & iOS SDK & Web OAuth2) are affected by some Facebook global bug.

from facebook-android-sdk.

nolimitdev avatar nolimitdev commented on April 27, 2024

Is is this repository live? Why still no response from Facebook to critical bug affecting all Facebook apps and all Facebook users which in the past changed an email address? We had to set special error message for users explaining why they are not able to sign in via Facebook...

Sorry that Facebook login does not work for you! Facebook did not provided your email address although you granted this permission. This is many years old bug, it is reported to Facebook but it is ignored.

Btw in case of our apps by inspecting logs in about 5% users are not able to login due to this Facebook bug.

from facebook-android-sdk.

Micpol avatar Micpol commented on April 27, 2024

I have the same issue in my current project - when I changed my email address I'm not able to retrive it when logging in with facebook even though I granted the permission to get it.

from facebook-android-sdk.

nolimitdev avatar nolimitdev commented on April 27, 2024

I have the same issue in my current project - when I changed my email address I'm not able to retrive it when logging in with facebook even though I granted the permission to get it.

@Micpol Now imagine how many users could change email address on Facebook during several years. All those people may have problem with Facebook SignIn. Im really interesting when Facebook employees start to take care about this critical issue.

from facebook-android-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.