1

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.

paulalexandru
  • 9,218
  • 7
  • 66
  • 94

1 Answers1

6

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.

Tobi
  • 31,405
  • 8
  • 58
  • 90
  • Worth noting here is the important restriction that neither endpoint includes public posts shared by the page (where the page isn't the author and is not tagged). – Nariman Mar 05 '16 at 21:34