[英]Facebook API Not returning all of a public pages wall posts with access token
I am using the PHP Facebook API but it doesn't return all of the wall posts from my public page with a valid access token - and I can't figure out what's so special about those posts. 我正在使用PHP Facebook API,但它不会使用有效的访问令牌返回公共页面上的所有墙贴-并且我无法弄清楚这些贴有什么特别之处。 They were all made by me, the page owner - Any ideas?
它们都是由我(网页所有者)制作的-有什么想法吗?
FYI the posts that arent working contain: https://www.facebook.com/events/205819312854732/ https://www.facebook.com/events/207820205995213/ 仅供参考,Arent工作的帖子包含: https : //www.facebook.com/events/205819312854732/ https://www.facebook.com/events/207820205995213/
PHP is: $wall = $validFacebookObject->api('/184196778359304/feed?access_token=".$validToken','GET'); PHP是:$ wall = $ validFacebookObject-> api('/ 184196778359304 / feed?access_token =“。$ validToken','GET');
You can't get ALL posts in one call. 您无法在一个通话中获得所有帖子。 If you look at the bottom of the response you'll see:
如果您查看响应的底部,则会看到:
"paging": {
"previous": "https://graph.facebook.com/184196778359304/feed?format=json&limit=25&since=1334425968&__previous=1",
"next": "https://graph.facebook.com/184196778359304/feed?format=json&limit=25&until=1331389779"
}
You can either use the "next" and "previous" URL's to parse through the posts, or include "limit" and "offset" parameters in your calls (ie: graph.facebook.com/PAGE_ID/feed?limit=100&offset=500&access_token=ACCESS_TOKEN will get posts 501 to 600) 您可以使用“下一个”和“上一个” URL来解析帖子,也可以在调用中包括“限制”和“偏移”参数(例如:graph.facebook.com/PAGE_ID/feed?limit=100&offset=500&access_token = ACCESS_TOKEN将获得501至600的帖子)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.