Created
November 8, 2012 17:45
-
-
Save ptasker/4040329 to your computer and use it in GitHub Desktop.
Facebook JS SDK API - FQL Query
This file contains hidden or 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
| //The following FQL get's events attached to a page. But it could be any FQL query. | |
| var Q = "SELECT eid, name, description, pic_big, start_time, end_time, location FROM event WHERE creator = PAGE_ID AND eid IN (SELECT eid FROM event_member WHERE uid = PAGE_ID)"; | |
| FB.api("/fql?q=" + encodeURIComponent(Q), function(response) { | |
| console.log(response); | |
| }, 'get', { | |
| access_token: 'GENERATED_APP_ACCESS_TOKEN' | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment