Its been a long i have not shared any information with you, so i just want to share new and hot stuff on hot to get facebook page news feeds. The reason behind writing this blog is earlier the facebook offline_access was working and it was very easy to manipulate but as this is been deprecated, it hampered the working functionality. so i had to find a way so that we can get the facebook page news feeds. After little hide and seek i found the solution using that we can fetch the facebook page news feeds.
Quick and easy steps to get facebook page news feeds.
Step 1: Download the facebook php sdk, if already have please ignore (May be need facebook latest lib file so please update those).
Step 2: Use following code and get the facebook page news feeds.
include('facebook.php'); $fb_config = array('appId' => 'xxxxxxxxxxxxxxxx', 'secret' => 'xxxxxxxxxxxxxxxx'); $facebook = new Facebook($fb_config); $feed = $facebook->api("/facebookpageid/feed?fields=message&created_time&limit=5"); print_r($feed);
You are done with your job.