Friday, March 26, 2010

You have no friends! What!? That's not right.

Just a reminder that
A) The wiki is out of date.
FBApi.friends_get(null, function(result, exception), callback) now works and
FBApi.friends_get([], function(result, exception), callback) does not.

B) From time to time when you make the call
FBApi.friends_get(null, function(result, exception){
        FBApi.users_getInfo(result, [...attribs you want...], function(result, exception){...};
};

Occasionally, result will be {} instead of a list of friends and attributes.
If that's the case, just call again. You'll get the right results eventually (I have mine loop whenever an empty object is the result and I no longer have problems).

No comments:

Post a Comment