Facebook Graph API可以理解为一个可以访问Facebook数据的Web
服务。该API提供了对人员,相册,事件等等Facebook对象以及这些对象之间诸如朋友,标签,
分享内容等等
连接之间的访问。
当您
输入一个URL后,会返回一个Json对象
对象的格式
参考http://developers.facebook.com/docs/reference/api/。
你可以用同样的方式访问Facebook对象
* Users: https://graph.facebook.com/btaylor (Bret Taylor)
* Pages: https://graph.facebook.com/cocacola (Coca-Cola page)
* Events: https://graph.facebook.com/251906384206 (Facebook Developer Garage Austin)
* Groups: https://graph.facebook.com/2204501798 (Emacs users group)
* Applications: https://graph.facebook.com/2439131959 (the Graffiti app)
* Status messages: https://graph.facebook.com/367501354973 (A status message from Bret)
* Photos: [url]https://graph.facebook.com/98423808305 [/url](A photo from the Coca-Cola page)
* Photo albums: https://graph.facebook.com/99394368305 (Coca-Cola’s wall photos)
* Videos: https://graph.facebook.com/614004947048 (A Facebook tech talk on Tornado)
* Notes: https://graph.facebook.com/122788341354 (Note announcing Facebook for iPhone 3.0)
你也可以用https://graph.facebook.com/ID/CONNECTION_TYPE访问这些对象的其他信息
* Friends: https://graph.facebook.com/me/friends
* News feed: https://graph.facebook.com/me/home
* Profile feed (Wall): https://graph.facebook.com/me/feed
* Likes: https://graph.facebook.com/me/likes
* Movies: https://graph.facebook.com/me/movies
* Books: https://graph.facebook.com/me/books
* Notes: https://graph.facebook.com/me/notes
* Photos: https://graph.facebook.com/me/photos
* Videos: https://graph.facebook.com/me/videos
* Events: https://graph.facebook.com/me/events
* Groups: https://graph.facebook.com/me/groups
参考: http://developers.facebook.com/docs/api