Today we are going to introduce you with Facebook API’s. There are various Facebook API’s available which lets you pull Facebook data and display on your own website Today we are going to tell you about how you can display your Facebook page Reviews on your website with proper authorization.
So, Lets Start
To pull out Reviews from Facebook Page you require PAGE ACCESS TOKEN provided by Facebook.
To create Facebook PAGE ACCESS TOKEN follow these simple steps.
- Go to https://developers.facebook.com and navigate to tools & support present at top menu.
- Now login your Facebook Account and go to Graph API Explorer.
- Now Click on the Get Token Button and select Get Page Access Token Option and select the page for which you want to generate the token.
- Copy and Token and paste it at a suitable place for future use.
Now Upon creating token let’s move to coding part where we will request page reviews with help of authorized Access Token from Facebook.
Create a page ratings.php
We will use PHP Function file_get_contents to request the resources from Facebook.
//Print reviewer name
Reviews are :
So this the simple way how you can actually pull out reviews from Facebook Page and display it to your website to give more crediblity to your site.
We hope this tutorial will help you and will give youa sniff idea on how your can access resources from Facebook with proper authorization.
To get the working demo Download
You can also view our latest trending topics
Because we believe Hurdles aren’t really Hurdles