Why don't we do a quick scan of the documentation to see what makes the most sense?
FB.SessionRecord.uid looks like our man!
What!? FB.SessionRecord.uid is undefined?
Maybe we need to call it from within or after the FB.Connect.requireSession(callback) callback.
Nope. Still undefined.
Or maybe this: FB.Connect.get_loggedInUser
It reads good... and, as an added bonus, it isn't guaranteed to exist! It may be null! And no callback! w00t!
Wait... now, back to the outdated wiki we find: FB.Facebook.apiClient.get_session().uid();
What the return value actually contains is undocumented in the api, but
I guess the difference between wrong documentation and none is kind of a 6-of-one-half-dozen-of-the-other deal.
Rock on facebook... rock on...
Rant: Why is it that the jslib api gives no explanation of what the functions do? It just gives the signature... ugh...
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment