开发者

fbjs: get uid of current loggedinuser

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 t开发者_运维知识库o know how do i get the uid of the current user?


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();

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜