页面选项卡上的名称/UID 无需身份验证?
我之前认为,如果不首先让用户验证您的应用程序,就无法获取用户的信息,特别是他们的用户 ID。但是,我看到此页面在自定义页面选项卡上执行此操作:
http://www.facebook .com/AutoCADWS?sk=app_4949752878
此页面选项卡不仅获取查看用户的名称,还获取其个人资料 URL,其中包括其用户 ID。他们如何在没有身份验证的情况下实现这一目标?如果可能的话,有人可以向我指出示例代码,让我可以看到它是如何在我自己的页面选项卡上实现的吗?
I had previously thought there was no way to get a user's information, specifically their userid, without first getting them to authenticate your app. I see that this page, however, does that on a custom page tab:
http://www.facebook.com/AutoCADWS?sk=app_4949752878
Not only does this page tab get the viewing user's name, but it also gets their profile url, which includes their userid. How do they accomplish this without authentication? If this is possible, could someone point me to example code where I can see just how it implement it on my own page tabs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您链接到的页面使用 FBML,该功能不再适用于新应用程序。
因此,在没有用户授权的情况下,无法无法执行此操作。
The page you linked to uses FBML, which is no longer available for new Apps.
So, there is no way to do this without user authorization.