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();
精彩评论