访问用户的Facebook ID没有授权? [英] visiting users Facebook ID w/out authorization?
问题描述
是否可以找到访问用户的Facebook ID,而不要求他们授权我的应用程序?
http://developers.facebook.com/docs/authentication/canvas
<阅读,这是非常好的。您需要对Base64字符串进行解码,并检查签名是否正确,但除此之外,它会将您的用户ID与其他内容(例如graph.facebook.com的临时访问令牌)
记住:您需要更改迁移选项卡中的设置以获取信息!这是一个重要的一步,但可以忽略...
希望这有助于:)
Stuart
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?
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
这篇关于访问用户的Facebook ID没有授权?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!