fbjs:获取当前登录用户的uid
我必须为我当前的应用程序使用fbjs。 我之前使用过 api.requireLogin 函数,但后来我查看了文档,发现该函数已被弃用并建议使用 FB.Connect.requireSession() 代替。
我想知道如何获取当前用户的uid?
i have to use fbjs for my current app.
i was using the api.requireLogin
function earlier but then i looked over at the docs and found the function has been deprecated and suggested to use FB.Connect.requireSession()
instead.
I wanted to know how do i get the uid of the current user?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您指的是 Facebook Connect 而不是 FBJS,因为它们是不同的东西。 (FBJS 仅在 FBML 应用程序内部运行,Facebook Connect 在 iFrame 应用程序外部运行,外部网站。)
但在 Connect 中:
FB. Connect.get_loggedInUser();
Assuming you mean Facebook Connect and not FBJS as they're different things. (FBJS only runs inside FBML apps, Facebook Connect runs outside in iFrame apps and external websites.)
But in Connect:
FB.Connect.get_loggedInUser();