Earlier this morning my code for getting a user’s email address from Facebook was working fine, but now it returns everything EXCEPT for the user’s email.
I get the fields using the Facebook C# SDK. I have the proper permissions to retrieve the email.
Similar problems from other developers:
- https://developers.facebook.com/bugs/391841610855516
- https://developers.facebook.com/bugs/365297990174802
I tried using Facebook Developer’s Graph API Explorer to test the json return fields and it is also missing the email field.
I solved this after skimming through SO Q&A’s and here is the solution for anyone who has encountered the same problem.
Apparently we were using a deprecated permission url string:
And should have been using this: