[英]Get all facebook group post using FB Graph API
I want to get all facebook group post using FB Graph API. 我想使用FB Graph API获取所有facebook组帖子。
I searched , googled, seen documentation for graph api, asked to so many persons, all are saying it is possible 我搜索,谷歌搜索,看到图形api的文档,问了这么多人,都说这是可能的
Also i'm providing link from stackoverflow which i referred and tried 此外,我提供stackoverflow的链接,我提到并尝试过
How to get all posts of a group via facebook graph api 如何通过facebook graph api获取组的所有帖子
But as you can see the post is very much old (from 2013) 但正如你可以看到这篇文章非常古老(从2013年开始)
When i tried to send request using CURL, at that time i'm not getting any error not any data 当我尝试使用CURL发送请求时,那时我没有收到任何错误而没有任何数据
When i tried below code 当我尝试下面的代码
$publish = $facebook-api(' https://graph.facebook.com/v2.3/ '.$group_id.'/feed/?access_token='.$params['access_token']);
at least i'm getting something in response 至少我得到了回应
Array ( [og_object] => Array ( [id] => 859455820800214 [type] => website [updated_time] => 2015-06-04T12:18:15+0000 [url] => https://graph.facebook.com/v2.3/659988617465253/feed/ )[share] => Array ( [comment_count] => 0 [share_count] => 0 ) [id] => https://graph.facebook.com/v2.3/659988617465253/feed/
)
And one good thing is that when i'm trying it from Graph API Explorer, i'm getting the data properly. 还有一件好事是,当我从Graph API Explorer中尝试它时,我正确地获取数据。
So where i'm wrong ? 那我哪里错了?
Any little help would be greatly accepted 任何一点帮助都会被大大接受
Why don't you just use the Facebook PHP SDK? 你为什么不使用Facebook PHP SDK?
You can get the group's feed via /{group_id}/feed
, as described at 您可以通过/{group_id}/feed
获取群组的/{group_id}/feed
,如下所述
Make sure your Access Token is of the right type and contains the right permissions. 确保您的访问令牌属于正确的类型并包含正确的权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.