Facebook wall feeds & comments, like button, follow button Documentation for wordpresss

* If you encounter "zip" related errors while installation or can't unzip the plugin zip and for other errors, go to "Errors details" section at the bottom of this doc

* If you purchase pro version, before installing it, remove the free version by deactivating and then deleting completely. For any kind of confusions and Errors, contact by different contact options in the website. Click here to see all shortcode names which can be included in wordpress shortcode


To run the plugin you will need profile/page/group id,Access token. You can get these easily, Follow the steps below -

Getting profile/page/group id

following are steps to get page/group/profile id -

(i) how to get facebook page id

load your page.your page id will be look like this image -

page id image
sometimes your page url may be like that - http://www.facebook.com/pages/pagename/334319236534?sk=wall in this case your page id
will be 334319236534. Verify your page id is correct by loading it under facebook as https://www.facebook.com/page_id_here

(ii) how to get facebook group id

Use this tool to get group id. you can also get group id by the following way - load your group.your group page url look like as https://www.facebook.com/groups/343432222/ where 343432222 is the id.
sometimes if your group page url look like as - https://www.facebook.com/groups/joomlanospam then getting the id is little tricky -
to get id load your group page in a browser, right click on the page and select 'view source' to view your page source.then find(ctrl+f) for
'group_id' and you will see 'group_id=34343434' somewhere.that's it your group id is 34343434. Verify your group id is correct by loading it under facebook as https://www.facebook.com/34343434

(iii) how to get profile id

Displaying profile feed will not be good because of lots of restrictions and privacy, but still you can display lots of public posts and activities.
If you created facebook application before 30th April 2014 and using it's token to display feed then to get profile id, login to your facebook account, go to profile page,
your profile id will look like in the image below (example - mridulcs) or use this tool to get id.

If you created facebook application after 30th April 2014 and using it's token to display feed then you have to get profile id in a diffrent way under you new application, contact for how.

Verify your profile id is correct by loading it under facebook as https://www.facebook.com/profile_id_here

profile id image

If sometimes you see 'no posts to share' in feed then go to plugin settings
and check for 'Show guest entries' field and increase number of posts value.


Getting Access token

You will need 'Access Token' to show feed.Without access token feed display will not work.follow these steps to generate
access token -

(i) Generate access token -

1. Login your facebook account -

2. Read the "How to create facebook application" section below to know how to create your facebook application and use it's app id and security code to generate access token.

3. If you are trying to display facebook page posts and by the above step-2 you created FB application after November 7, 2017 then you will need a page access token if you want to display post comments properly ( if you created a FB application before November 7,2017 then you need not use page access token, you can generate a user token entering that app id and secret key in the following page access token generation steps, there in last step you will get user token). For page token generation, go to token genearation page here - page access token generation link & follow these steps -

** before generating page and user token by the following steps some settings should be done as follows -
a) if you are generating token and you don't own the facebook application by which you will generate token then you should be added as a tester role in the application. For this the application owner need to add you as tester role by clicking "Add Testers" in the "roles" section of the application. Easy to do, contact if any problems to do so.
b) if you are generating token and you don't own the facebook page and enter that page id in last steps of page token generation then you will get errors. So to overcome that problem ask the page owner to assign you any role from the "page roles" section of page settings.

Now the page/user token generation steps in token generation page here (https://extensions.techhelpsource.com/access-token-page) are -
(i) Enter FB application id and secret key and press submit at first step,
(ii) Then you will be asked to click submit button again in 2nd step,
(iii) Finally in 3rd step you will be asked to enter FB page id in numbers(at this step you can see generated user token in the input box), if you enter page id and click submit then you will see your page access token in response which is shown below as a example.

put this access token code in 'Access token' box under general settings tab in plugin settings page.

4. If you are displaying a Facebook group posts then you can either use a application token or page access token or user token. To generate page access token follow steps written in step-3 above. To generate user token follow step-3 above again(you will see user token in final step, FYI user token expires in every 2 months). To generate application token go to this token generation link here. FYI page and app tokens don't expire.

5. If you are displaying a Facebook profile posts then you must use a user token to display all user posts as much as available. To generate user token follow step-3 above (you will see user token in final step, FYI user token expires in every 2 months).


How to create facebook application

follow the following steps to create and configure app,it takes couple of minutes and easy to do

If you have not created facebook apps before or have not registerd as a developer then follow from step-1 below Else if you created apps before or registered as developer before then start from step-3 -

step-1: go to this link - https://developers.facebook.com/apps

step-2: click "Register as a Developer/register now" button.A popup will appear as shown below.There check the policy acceptance check box and click continue.
In the next step you will be prompted to verify your account by entering mobile phone number, following image shows that -

enter your mobile number and verify and clicking continue buttons complete rest of the steps by entering compulsory inputs.

step-3: If you completed step-2, you will see a "developer"/"Manage apps" section there at left side in home page of your facebook account.
click developer or Manage apps link or click here https://developers.facebook.com/apps to go to your apps page. there you will be seeing your created apps listed,
click 'Create a new app' button which is located under "Apps" menu item dropdown (Apps->Create a New App), following window will appear -


Enter display name(app name) and category only and leave other fields blank, then click "create app".Next you will be prompted to enter captcha as
security check and if you complete this, your app creation is complete and you will see that application's dashboard page as shown below.
this page also reachable from your account's home page developer/manage apps link or from here https://developers.facebook.com/apps and then by clicking on that app.

step-4: Now you have to do the real part.Click "settings" from app's left hand menu to go it's settings page, there in basic settings tab, click
"+ Add Platform" button at bottom and a pop up window comes up where a lot of platforms listed.Click "Website" in that popup then a website section will be added
as shown in the final picture below.After that in that section enter the site url in "Site URL" field from where you will generate access token.In that
case it will be my token generation site.So enter that address - http://extensions.techhelpsource.com/ also in latest app you may be prompted to enter privacy policy url, if it is then enter this url - http://extensions.techhelpsource.com/privacy-policy in privacy policy url box in basic settings.After that click "save changes" at bottom to save changes for your app.


step-5: Finally, you need to make your app live so that it is accessible from anywhere to make feed display work.To do that click "Status & Review" link from left
hand menu of the app.After that chose "Yes" option for the field says - "Do you want to make this app and all its live features available to the general public?"
then confirm to make your app live and public.

In the above picture App ID and App Secret codes(click show button to see secret code) you will need to enter in the boxes in access token generation page as written in the getting access token section above.

That completes applicaton creation and configuring.

Errors details -

i) If you get error while generating token(for previous plugin version 1.0) like - "Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains." That's because you haven't entered "Site URL" field of your application setting, as shown in the last image of last step for "How to create facebook application" section above.
ii) Why isn't the feed from my group/page displaying? -
Make sure system requirements are met(look for the tab in settings page), facebook id and access token are right. Also, increase the Show number of posts value from settings becuase non-pro version only shows status/textual posts of page/group/profile so there may not be status posts in the number of posts value specified. Finally, make sure if there are no restrictions set in facebook page/group settings comparing with other page/groups for which feed works, mainly remove country and age restrictions in page/group settings.
iii) Why my facebook profile feed not displaying properly?
If you created facebook application after 30th April 2014 and using it's token then profile feed may not be displayed for new facebook Graph API.Actually Displaying feed for profile shows only public and selected posts because of various restrictions.So it's not good to show profile feed.
iv) Ppage/group profile picture not appearing or a question sign comes up when displaying feed-
it may be because of some restrictions you set in page/group/profile settings.For instance, in a page settings if "Age restrictions" setting is set to "Alcohol-Realted" then a question mark will appear instead profile picture.Likewise find out other restrictions you set for which this kind of problems appearing until it's solved.
v) If you are using previous version 1.0 and ever get access token related errors use this link - access token generation link to generate your access token
Access token will expire if you change something in your account setting e.g password.so you will need to generate token again. For facebook page or group any access token will work , its not important that profile amdin need to generate the access token
vi) if you get Unsupported get request errors, then make sure the facebook id you entered is right
vii) like box is not appearing in my Group Wall Feeds - like box is only for facebook business pages only not for groups
viii) only last two comments appear per post & "view all comments" buton not showing - That's because facebook deprecated some fields,
nothing to do,need to code to match new changes from facebook
ix) If you get errors related application like "Error validating application. Application has been deleted" - That's because the facebook,
application by which you generated access token is deleted.Try to generate token by using your application, view How to create facebook application
section above.There are many reasons why app deleted like
1. facebook bugs
2. using the app to do facebook development not following policy - https://developers.facebook.com/policy/ properly like if you post or
comment by same text( like "test comment") to a facebook page by graph api again and again in a short time, then it look like spammy to facebook,
these kind of violations written indirectly in policy.

to be sure facebook application will not be deleted, don't use ur application by which you generated token for other developments improperly.
x) If you get errors related with zip that you unable to unzip or the following error while installation - "The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Invalid archive structure", it might be because of problems in zip program installed in your computer or no zip programs.To overcome problems follow either one of these ways -

a) install winrar zip program ( http://www.win-rar.com/download.html ), then unzip the plugin using it (if you can't open zip to unzip, right click on it and click Extract files to unzip it), inside you will find main installation
zip - "facebook-wall-and-social-integration_v1.0.zip", install it via wordpress.If installation failed then unzip this main zip and again rezip using winrar. Make sure under that new zip - "facebook-wall-and-social-integration_v1.0.zip"
there is only one folder "facebook-wall-and-social-integration" and contents inside it, now go on and install it.

b) If step [a] above fails, create a folder giving this name - "facebook-wall-and-social-integration". Unzip the main plugin zip file as written above, you see there is a folder(facebook-wall-and-social-integration) within,
copy the content of the folder into your newly created folder("facebook-wall-and-social-integration") and zip it again. Make sure this new zip name is same as plugin name(ex - facebook-wall-and-social-integration.zip)
and inside of the zip there are content directly not under another folder, install this zip via wordpress.

c) Also anoher way of installing may be by creating a folder named "facebook-wall-and-social-integration" directly in your website file system under "wp-content\plugins\" folder from hosting
control panel or via FTP. After that copy the content of "facebook-wall-and-social-integration" folder in the MAIN PLUGIN ZIP file (as written in step - [a] above) into the created folder
"wp-content\plugins\facebook-wall-and-social-integration\" Then activate the plugin from the plugins menu in wordpress admin dashboard.
xi) How you get post id to filter posts by post id? click the date on any post in facebook then it will be loaded as a single post in FB, there look for the post id in the url in numbers. In case of page post sometimes thare are multiple ids in the url, look for ""story_fbid" value. FB may change things in future, use google to get post id.

for more help email at - mridulcs@yahoo.com, mridulcs2012@gmail.com

for chat skype/yahoo messanger id - mridulcs