Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting posts of public pages on Facebook

Is there a way to get the posts of public pages on Facebook such as bars, clubs etc... and display them on my app?

I am working on a social media app, and I want to post information about real-time events in bars, clubs etc... Is there a way for me to use the posts of these joints from Facebook? Those pages are all public so there is no privacy issue.

like image 521
David Radchenko Avatar asked Jan 23 '26 12:01

David Radchenko


1 Answers

You can use the Facebook Graph Api. Here's an example to get all the posts from Stack Overflow page on facebook (You need access token for that):

curl -i -X GET \
 "https://graph.facebook.com/v2.5/officialstackoverflow/feed?access_token=[YOUR ACCESS TOKEN"

The structure of the request is:

https://graph.facebook.com/v2.5/[Facebook Entity Id]/feed

You can use the Facebook Graph Explorer tool for testing and getting temporary access token.

like image 118
shudima Avatar answered Jan 25 '26 02:01

shudima



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!