Sunday, December 19, 2010

Facebook Graph APIs example

Graph API template:
https://graph.facebook.com/ID/Application_ID?access_token=...

Examples:
Run url on browser: https://graph.facebook.com/kiennguyenanh
You will receiver the result:
{
"id": "1254980440",
"name": "Kien Nguyen",
"first_name": "Kien",
"last_name": "Nguyen",
"link": "http://www.facebook.com/kiennguyenanh",
"gender": "male",
"locale": "en_US"
}

https://graph.facebook.com/me/albums?access_token=2227470867|2.m0hi0FTGb8nIedjDvglJxA__.3600.1292821200-1254980440|k547Mmt0G-Iu80j8AnC2HCZ_H68 (maybe token will be expired)

- friends, home, feed, likes, books, movies, notes, ...

No comments:

Post a Comment