小编Ole*_*nko的帖子

如何获取 og_object 或共享 url 的 Facebook 帖子?

博客网站上的文章发布在多个 Facebook 页面上,我需要获取包含特定文章 url 的 facebook 帖子 url 列表。

可以og_object使用此请求通过文章 url 获取详细信息:

https://graph.facebook.com/v2.5/?id=http://spoilednyc.com/2015/02/10/16-bucket-list-must-dos-real-new-yorkers&access_token=ACCESS_TOKEN
Run Code Online (Sandbox Code Playgroud)

结果将是:

 "og_object": {
"id": "794284920664423",
"description": "New York City has so much to offer beyond the attractions most known to tourists. Want to go off the beaten path, here are some suggestions for you.",
"title": "Beyond the Tourist Attractions: 16 Bucket List Must-Dos for 'Real' New Yorkers",
"type": "article",
"updated_time": "2016-02-19T11:21:26+0000",
"url": "http://spoilednyc.com/2015/02/10/16-bucket-list-must-dos-real-new-yorkers/"
},
"share": {
"comment_count": 0,
"share_count": 15247
},
"id": "http://spoilednyc.com/2015/02/10/16-bucket-list-must-dos-real-new-yorkers"
}
Run Code Online (Sandbox Code Playgroud)

从这一点上,我可以找到,例如,使用的评论列表 …

facebook-graph-api

5
推荐指数
0
解决办法
609
查看次数

标签 统计

facebook-graph-api ×1