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 may arise" 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 will not work.follow these steps to generate
access token -

(i) Generate access token -

1. Login your facebook account -

2. View the "How to create facebook application" section below at first to know how to create your facebook application
and use it's app id and security code to generate access token.After you created application -

i) If you are using current version, go to this link - access token generation link and put your app id and app secret in boxes and press submit. After token generation complete,
you will see your access token in response as - "access_token=3423355552|47ujk89sdfkj88s75l", where "3423355552|47ujk89sdfkj88s75l" is your token, don't copy last "access_token=" part

ii) If you are using previous plugin of version 1.0 ( javascript version, not available to download now, which don't depend on server side methods like curl...) Go to this link access token generation link.
to generate token.After token generation complete, you will see your access token in response which is shown below.
here bold blue text is your access token (don't copy last text - "&expires=5182284")

access_token=jjjsdfsdfdsfsdsdfdfsdfsferewrwrererwerwerwrwrwrwerwrwersdfdfdfsdrwhgakljklsjdklfjlk&expires=5182284
put this access token code in plugin's 'Access token' box in wordpress settings page if you are using previous version 1.0

-----------------------------------------------------------------------------------------------------------------------------

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 -
register_developer_window_image

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" section there at left side in home page of your facebook account.
click developer link or 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 -

create_app_window_image

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 under developer section by clicking on that app.

If you are using plugin version 1.1 or above, then skip the next step-4 and go to step-5 (so, you need not add any website platform), else if you are using
previous version 1.0 then continue from step-4 below.


step-4: 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/ and click "save changes" at bottom to save changes for your app.

app_basic_settings_image

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 boxes in access token generation link and press submit. After token generation complete,
you will see your access token in response as - "access_token=3423355552|47ujk89sdfkj88s75l", where "3423355552|47ujk89sdfkj88s75l" is your token, don't copy "access_token=" part

But if you using previous version 1.0 enter app id and key in the boxes in this access token generation page -
access token generation link

That completes applicaton creation and configuring.
--------------------------------------------------------------------------------------------------------------------------------

Errors may arise -

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