Facebook Graph API使用介绍

转自:http://koda.iteye.com/blog/661156

 

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

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值