Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visiting users Facebook ID w/out authorization?

I have a native (FBML) Facebook Application. I do not want to push the application visitors through the authorization process, however I do want to know their Facebook ID.

Is it possible to find the visiting users Facebook ID without requiring them to "Authorize" my Application?

like image 610
Andrew Leafe Avatar asked Oct 14 '22 04:10

Andrew Leafe


1 Answers

Before, I said it couldn't be done - but it can.

http://developers.facebook.com/docs/authentication/canvas

Read that, it's excellent. You need to decode the Base64 string and check the signature is correct, but other than that it gets you the user id among other stuff (like a temporary access token for graph.facebook.com)

REMEMBER : You need to change the settings in the Migrations tab for the information to come through! It's a vital step, but can be overlooked...

Hope this helps :)

Stuart

like image 79
Spedge Avatar answered Oct 20 '22 16:10

Spedge