I need to grab the statuses from a Facebook page via PHP to display on the page. I don’t want to have people logging in to facebook just for my script to grab the statuses from the page since it is a public page and isn’t restricted. I have the Facebook API for PHP in my projects directory but have no idea how to use it to do what I want it to. Could someone give me a code example of how I’d do this? Thanks!
Share
It’s really a straight forward task if you follow the documentation. Since
/PAGE_ID/feedrequires any validaccess_token, your appaccess_tokenis enough to get the data:coca-cola/feed)access_tokenfrom the Access Token Tool and use it instead of yours