访问用户的Facebook ID没有授权? [英] visiting users Facebook ID w/out authorization?

查看:188
本文介绍了访问用户的Facebook ID没有授权?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个本地(FBML)Facebook应用程序。我不想通过授权过程推送应用访问者,但我想知道他们的Facebook ID。



是否可以找到访问用户的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆