I have a strange behavior on facebook connect using /me?email
I created 2 accounts on facebook
I added differents emails for both account
I put the email to be in public profile for both.
When I connected with the first account I get the email when I try with /me, with the second not. What can be the problem ? Please help me and sorry for my english
Afaik emails need to be verified by Facebook. Also, you need to make sure that each accounts authorized the App with the email permission.
Related
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.
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§ion=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.
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
I want users to able to sign up in my application(rails) using facebook connect.
However I am not very sure what all information of the user will be available ,specifically the email of the user. I know that the emails of the user's friends are not available, but not sure if the email of the user himself is available.
You can prompt the user for email extended permission.
If I plug in the facebook connect into my website, How can I prevent double signups?
Lets say I have a user that's already signed up to my site but he clicked the connect with facebook, is there a way to track it and redirect the login to his already existing account?
As long as the user doesn't long in explicitly to your side there's no way as FB won't give you the mail address which is the only thing you might probably use as an unique identifier (while people use different mail addresses for different services)
So your only way to do this is by detecting when you get a FB id while you have a valid session from your system.
Everything else depends on your environment.
You shall check against the facebook user id since as johannes said, facebook won't let you access the user's email by default.
Also, as the user can change his or her email account, you could get account duplicates. Facebook Id is the safe one.