开发者

fbjs: get uid of current loggedinuser

开发者 https://www.devze.com 2022-12-18 19:38 出处:网络
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.

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

精彩评论

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

关注公众号