Skip to content Skip to sidebar Skip to footer

Get A List Of All Friends On Facebook Using Js Sdk And Fql

I am trying to get a list of all friends of the current user using my Facebook application: Here is my code for your reference: var meID =

Solution 1:

The difference between queryUserName and your other queries is that queryUserName contains a parameter, the {0}.

Your other queries are using me() instead, so they don't need a data parameter to be passed in.

You need to change this line:

var query = FB.Data.query(queryOnFriends2, meID);

to this:

var query = FB.Data.query(queryOnFriends2);

Solution 2:

OK i got it now ... i used php to authorize my app ... but didn't authenticate as well! When using just the facebook jsSDK and initalize and then getStatus it does it all automaticly!

Then the queries worked!

Post a Comment for "Get A List Of All Friends On Facebook Using Js Sdk And Fql"