I have a Facebook canvas iframe application that uses the JavaScript SDK. How do I get the user’s name without them having to authorise the application?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, it is not possible.
When Facebook calls your page, it’s done by POSTing into an iframe and you get a signed request which lacks most data if the user hasn’t yet to authorize your applications, as it says in the documentation:
The Graph API request require you to supply an active access token, otherwise you should get this error:
(You can check that in the Graph API Explorer; just remove the access token before you try.)