Skip to content

Instantly share code, notes, and snippets.

@jcarlos7121
Created April 26, 2013 03:11
Show Gist options
  • Save jcarlos7121/5464840 to your computer and use it in GitHub Desktop.
Save jcarlos7121/5464840 to your computer and use it in GitHub Desktop.
Consulta de amigos por FQL
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
var idiiuser = response.authResponse.userID;
FB.api(
{
method: 'fql.query',
query: 'SELECT uid,name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = '+idiiuser+') AND is_app_user = 1'
},
function(response) {
console.log("Este es tu json: " + response);
}
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment