Facebook API returning ID instead of email - email

I'm making a game in unity and was using a facebook connect plugin by prime31. Previously I was acquiring the Facebook user's email adress but now when I call that I get the Facebook ID.
I checked it with https://developers.facebook.com/tools/explorer/?method=GET&path=me%3Ffields%3Demail and it returns the Facebook ID.
Has Facebook recently changed something? Can you guys tell me how should I retrieve the email address now?
Thanks.

That's the correct call - make sure you have the email Permission ( A call to /me/permissions will verify) and the user actually has an email address listed - it's possible a very small number do not.

Related

How to get user's email address using facebook unique number?

Initially, we have enabled FB login to one of our iOS app. At that time, we were only storing Facebook unique number in our database for user's unique identification purpose. Now that our customer is asking us to enable Google Login, since we didn't store user's email address at the time of their login, it became tricky for us authenticate existing FB users if at all if they want to use Google login. Consider, user is using google email as their FB login. Now we need your help in getting user's email id by using FB unique number which we already have it in our db. Your help in this regard would be highly appreciable. Thanks in advance.
There is no way to get the email of a user on Facebook, unless he specifically authorized your App with the email permission.

facebook api explorer do not retrive email address

I'm trying to implement signin/-up via facebook, but do not receive email address on request. Sure, I've grabbed the email permission before, but no success.
So I tried with FB Graph API Explorer and again my private account. Yes, access token with email permission, but no email will be delivered, instead "Field is empty or disallowed by the access token".
Access token? Just created, with email permission.
Empty? How could it be, when it is required on signup?
Using a different account of a friend, worked like a charm. Could it depend on my account settings?
Even if the permissions are given, a user can turn Platform off in the Apps Settings. Check the settings and permissions your App is showing, here: https://www.facebook.com/settings?tab=applications&section=opt_out&view
If its alright, you can follow this discussion: Register with Facebook sometimes doesn't provide email
Thanks for answer. I spent a lot of time to figure out what is going on. It seems, that my email address caused the problem, which is facebook#mydomain.com. After changing to a different one, without facebook in it, I get response as expected.

Debugging not receiving some user's email address

I'm an admin of this facebook application. And when user join the app, I have "scope=email" so that my app can read the user's email address.
This is working mostly, but I just found that some player's email are missing in the db.
My question is..
How do I debug and see if facebook is returning email address for this particular user (I have facebook id)? I tried "Graph API Explorer", but it seems that I can only see my own email address.
And how do I get a list of permission that a user has given to my app?
Did more investigations and found that we need the player's access token - an active one.

Facebook Registration - Javascript SDK

I am using Register via Facebook for my website.
After a user authenticates via Facebook Login, I retrieve and store their email address and name (nothing else).
Is there some type of unique identifier that goes along with everyone's facebook account?
What if someone changes their email address on their Facebook account?
I've checked their docs but can't find anything to use.
You are looking for user id. This is going to be unique for each facebook user and cannot change (unless some user deletes their facebook account and then goes in a registers a new facebook account)
Every Facebook user has a unique 'userId'. This userId will never change.
http://developers.facebook.com/docs/reference/api/user/

FaceBook OAuth, Not able to get some of the Email Ids

I'm developing a Facebook Oauth application.
For my email account of Facebook it is working fine.
but for others (my work mates) accounts it is not working.
It is able to get Facebook first name for them but not the email address.
We have checked the settings for all accounts, it is same as me, but not working.
I have also tried in live environment, but the issue is the same.
Any ideas?
Have you got the email extended permission for the user whose email address you're trying to access? You can check with a call to /me/permissions in the graph API
Also consider that you can read real email also depending on your friends's privacy settings