visiting users Facebook ID w/out authorization?

吃可爱长大的小学妹 提交于 2019-12-07 05:20:41

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/2990754/visiting-users-facebook-id-w-out-authorization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!