phpfacebookfacebook-graph-apifacebook-php-sdkgraph-api-explorer

Facebook Graph API Explorer get page specific page feeds


I use Graph API Explorer to get some feeds from my facebook page. 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 :

/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.


Solution

  • You should use

    GET /{page_id}/posts
    

    instead of

    GET /{page_id}/feed
    

    if you just want to Page's own posts.

    See

    /{page-id}/posts shows only the posts that were published by this page.