Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get all posts in a FB Page #30

Open
doggy8088 opened this issue Jan 31, 2019 · 1 comment
Open

How to get all posts in a FB Page #30

doggy8088 opened this issue Jan 31, 2019 · 1 comment
Labels

Comments

@doggy8088
Copy link

I tried to fetch all posts in a FB Page but only first page feeds/posts returned. How can I get all the posts in a FB Page if I am a manager of that Page?

facebook-cli api "{page-id}/posts"
@specious
Copy link
Owner

According to the API documentation (https://developers.facebook.com/docs/graph-api/reference/v3.2/page/feed), there are several related graph edges available, including page-id/feed and page-id/posts.

For an application that wasn't officially reviewed and approved for the Page Public Content Access Feature, you can only retrieve this information for a page that you have the manage_page permission for.

For example, as an administrator of https://fb.me/killingmosquitoes, I'm able to retrieve this list of posts in JSON format by running:

facebook-cli api killingmosquitoes/posts

However, if this page had more than a hundred posts, it looks like I wouldn't be able to retrieve all of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants