简体   繁体   English

Facebook Graph API Explorer获取特定页面的页面提要

[英]Facebook Graph API Explorer get page specific page feeds

I use Graph API Explorer to get some feeds from my facebook page. 我使用Graph API Explorer从我的Facebook页面获取一些提要。 So I have something like this: 所以我有这样的事情:

GET ->/v2.2/my_page_id/feed

which returns me all the feeds from my page. 从我的页面返回所有提要。 At this point everything is well, the problem is that it returns not only the posts I posted, but also the posts other posted on my page. 此时一切都很好,问题在于它不仅返回我发布的帖子,而且还返回我页面上其他发布的帖子。

What I basically want is to get only my posts which are placed in the center column without the other peoples posts on my page which are placed on the left column. 我基本上想要的只是将我的帖子放在中间列,而将其他人的帖子放在左边列。

If I try this: 如果我尝试这样做:

GET ->/v2.2/my_page_id/feed?fields=from{id}

I will get only the user ID who posted the feed, so I guess I have to put some kind of where clause like : 我将只获得发布该提要的用户ID,所以我想我必须放入某种where子句,例如:

/where?from{id}=my_user_id

Can anybody help me with this? 有人可以帮我吗? It seems such a simple thing but I lost lots of hours to make research about this where clause without any luck. 看起来这很简单,但是我没有花很多时间去研究这个where clause

You should use 你应该用

GET /{page_id}/posts

instead of 代替

GET /{page_id}/feed

if you just want to Page's own posts. 如果您只想查看Page的帖子。

See 看到

/{page-id}/posts shows only the posts that were published by this page. /{page-id}/posts仅显示此页面发布的帖子。

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

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