Created
April 26, 2013 03:11
-
-
Save jcarlos7121/5464840 to your computer and use it in GitHub Desktop.
Consulta de amigos por FQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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