简体   繁体   English

通过帖子网址使用图形API获取Facebook帖子的评论

[英]Get Facebook post's comments using graph API by post URL

I like to get comments of a post by its URL but it seems its impossible by using graph API. 我想通过其URL获取帖子的评论,但是使用graph API似乎是不可能的。 From my observations, I could find these types of posts URLs: 从我的观察中,我可以找到以下类型的帖子URL:

https://www.facebook.com/bbwbooks/photos/a.168788885097.122872.74209335097/10153736545150098/?type=3&theater

https://www.facebook.com/4thirteengroup/posts/1285218878169361

https://www.facebook.com/groups/semsari.malezi/permalink/1159959294084128/

or perhaps some other types. 或其他一些类型。

Is there any idea, how its possible to get comments or at least the ID of the post from the url? 有什么想法,怎么可能从URL获得评论或至少帖子的ID?

First use facebook developer section https://developers.facebook.com/tools/explorer/1021611514583622?method=GET&path=me%2Fposts%3Ffields%3Did%2Cobject_id%2Ccomments&version=v2.7 首次使用Facebook开发人员部分https://developers.facebook.com/tools/explorer/1021611514583622?method=GET&path=me%2Fposts%3Ffields%3Did%2Cobject_id%2Ccomments&version=v2.7

Select Application , Get access_token with user_posts access rights, me/posts?fields=id,object_id,comments by calling this api ,you will get all posts with their comments 通过调用此api,选择应用程序,获取具有user_posts访问权限, me/posts?fields=id,object_id,comments的access_token,您将获得所有带有其评论的帖子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM