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.
Related
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.
Using the asp.net-mvc4 oauth Facebook client (OAuthWebSecurity.RegisterFacebookClient) pretty much as it is in the MVC4 template internet app. Problem is, when users log in with their account they see the message:
"would like to access your public profile, friend list and email address"
The thing is, I don't want access to their public profile, friend list and email address. I just want to allow them to log into my app using their Facebook account. I can see that this message would turn people away (I personally wouldn't click 'okay').
Ideally, I would like to specify the level of permission required in my MVC app where the mimimum level does not result in that message. This would allow increased privilege at a later stage if needed. But, I would settle for any way that I can get a less ominous message.
I have looked at the settings in the Facebook app management page, but can't see anything that would reduce the restrictions. I tried configuring the permissions to only-me, but this didn't help. I searched online and did not find anything that suggested a solution to this.
Any help would be great.
Edit:
Also, I am not sure why 'public profile' is mentioned in the message at all. Can't anyone access your public profile (since it is public)? So why mention it in the message? Or does the word 'access' mean more than simply being able to see the public profile?
Those are the very basic permissions that a user grants you by just logging in to your app - has always been that way, FB have just updated the message shown to the user to make it more clear what they actually share.
You can not ask for "less" permissions.
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.
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
Having read the Facebook connect documentation I'm unable to determine what information I will have.
I realise I will have the Profile photo & Proxy email and access to a friends mechanism. I'm reasonably sure I will have access to First name and surname. Will I have access to things like Age?
EDIT: This isn't a Facebook APP, I'm using Facebook connect. RE: bobcat's response, can you still use Users.getInfo?
Once a facebook user has okayed your app, you can use the API including Users.getInfo which gives you the users birthday.
update As far as I can tell from the docs, when a user uses facebook connect to authenticate on a website, then the website can do anything that a facebook app could, with a few restrictions.
For some reason this post still came up when searching for something similar with Facebook login information, despite how old the post is.
Facebook is now using the term "FB.login" which was known as "Login with Facebook". It provides you with information that you request, whether that be an email and birthday, to profile information of their name and address, etc.
I found this link that will tell you the permissions you can request using FB.login here:
https://developers.facebook.com/docs/facebook-login/permissions/v2.0
There are plenty of options for requesting information and posting on their behalf.
I was searching for the access token information to keep the connection while registering or signing in. That information I found at the bottom of the next section of their documentation, found here:
https://developers.facebook.com/docs/facebook-login/access-tokens/