How to get the posts on a facebook page (not downloaded by me) using the Graph-api?

Asked

Viewed 107 times

0

I need to collect the posts from pages on Facebook not managed by me. Does anyone have any suggestions on how to do this? Possible using the Graph API Explorer?

1 answer

0

Yes, it is possible, but your app or website will need get a credential (token) for the user to query.

/{page-id}/feed

The feed of posts (including status updates) and links Published by this page, or by others on this page. There are other edges which provide more specific sets of posts:

  • /{page-id}/posts shows only the posts that Were Published by this page.
  • /{page-id}/tagged shows all public posts in which the page has been tagged.
  • /{page-id}/promotable_posts shows only the posts that can be boosted (includes unpublished and scheduled posts).

It is possible to test queries on Graph API Explorer, in this case the Explorer generates a token that is valid for a limited time. You can even use this token in your app/site but have to renew constantly.

buscando posts de uma página

In the documentation you can see examples of how to implement in different languages/platforms:

documentação JavaScript SDK

Browser other questions tagged

You are not signed in. Login or sign up in order to post.