Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Email Permission is granted but email does not return #932

Closed
leoapsilva opened this issue Feb 7, 2018 · 6 comments
Closed

Email Permission is granted but email does not return #932

leoapsilva opened this issue Feb 7, 2018 · 6 comments

Comments

@leoapsilva
Copy link

The user granted the 'email' permission, but the email does not been returned.
I've check all declined permissions then I call $helper->getReRequestUrl.
So, all permissions I asked are granted or the user cannot login.

image

I've noted for some those users these permissions are not returned, only firends can have information about the user, and the profile on facebook is displayed like that (Look the "To see what he shares with friends, send him a friend request."):
image
image

It was plausible the profile omitted for non-friends could not return some info.
AFAIK, this behaviour is not documented...

Searching for more users with the same problem, I found two users which the Facebook profile is 'wide opened' (see next picture).
For these users, the permission 'friends' returned info.
But email was not returned.
image
image
It happens with 4 from 30 users in one day.
It is very severe...
I found more users with the same problem on issues #922 and #882.
Maybe they could not explain exactly what was their issues and could be the same of mine.

@gmertk
Copy link

gmertk commented Feb 8, 2018

Hi @leoapsilva, it looks like it is actually related to the platform itself rather than this SDK. If you still get the same response from Graph Explorer https://developers.facebook.com/tools/explorer/145634995501895/ then the issue isn't related to the SDK.

@leoapsilva
Copy link
Author

Hi @gmertk, thanks for your reply. But I did not understand what the context of 'the platform itself'.
Could you elaborate more?
If I had the all the users authenticating and granting email permission and facebook 'omitting ' the email I would think it was my code.
But some of them populate the index 'email' of facebook's return array and some does not as I sad.
Do you have any other idea?
Thanks in advance

@leoapsilva
Copy link
Author

Hi @gmertk, as you suggest, I found the token of some users the email permission is granted but the email does not return and put on Graph Explorer.
As I expected, the email of this user does not return as you can see below:

image

image

Maybe it is an issue on SDK...

@gmertk
Copy link

gmertk commented Feb 16, 2018

Hi @leoapsilva if you click the "Show" button next to "3 Debug Messages", you can see the warning about missing email. As I mentioned, this isn't about the PHP SDK. Facebook Platform doesn't return the email by design when the email isn't reachable or when the user doesn't have a confirmed email.

@yguedidi
Copy link
Contributor

Thanks for the report! And special thanks to @gmertk for help solving this issue!

Here what the doc says:
image

So I'm closing this as it looks like not and SDK issue, but a user who changes his/her email adress to an invalid one.

@simeyla
Copy link

simeyla commented Dec 3, 2018

I think this can most commonly occur when someone join using just a phone number too. That's probably more frequent than it used to be so your app needs to test for that scenario.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants