简体   繁体   English

Facebook Graph API仅获得自己的帖子而没有共享的帖子

[英]Facebook Graph API only get own posts without shared posts

I'm new to the Facebook API with PHP, and so far, I've succeeded in retrieving all the posts for my feed. 我是PHP的Facebook API的新用户,到目前为止,我已经成功检索了供稿的所有帖子。 But, I want to retrieve only the posts I have published, so nothing I have shared (that's what's included when I use the /posts ) nor do I want messages placed on my feed by someone else (that's what I get using /feed ) 但是,我只想检索已发布的帖子,所以我没有共享任何内容(这是使用/posts时包含的内容),也不希望其他人在我的feed上放置消息(这就是我使用/feed得到的信息)

Below an example of my call: 下面是我的通话示例:

$data  = file_get_contents("https://graph.facebook.com/$page_name/posts?limit=$limit&access_token=$access_token");

Any thoughts on this? 有什么想法吗? Should I be using the facebook PHP SDK, or can it be done with a file_get_contents ? 我应该使用facebook PHP SDK,还是可以使用file_get_contents完成?

I have tried the "&with=" location filter, but I have no idea what that should do. 我已经尝试过"&with="位置过滤器,但是我不知道该怎么做。 Also I have tried adding "?filter=" app_$app_id , but that had no effect either. 我也尝试添加"?filter=" app_$app_id ,但这也没有效果。

根据CBroe的评论,这是不可能的,需要其他代码。

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

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