WordPress.org

Ready to get started?Download WordPress

Plugin Directory

jQueryFacebookWallLight

jQuery Facebook Wall WP Light retrieves a Facebook account's data and builds a Facebook styled feed on a page or post.

Getting Data from Facebook

jQueryFacebookWallWPLight use the Facebook's graph API to retrieve your Facebook account data. Facebook needs to know who is asking for and retrieving their data; consequently, they have an authentication system to manage these needs. One way to retrieve data in this authentication system is via a Facebook App. The App in turn can request an access token, and once an access token has been acquired it can make requests for data from the graph API. Long story short, jQueryFacebookWallWPLight needs three things to get your Facebook account data:

  1. Your Facebook User Name (Id)
  2. A Facebook App associated with your Facebook account
  3. An Access Token for your Facebook App

Get your Facebook Username Name

Your Facebook username appears after the http://www.facebook.com/ in your browser URL. Usually it looks something like this: http://www.facebook.com/yourUserName. In other words, if you are Rick James, your Facebook URL looks something like: http://www.facebook.com/RickJames. Sometimes you have to look at your timeline to get your account name in the URL. IMAGE

Once you have your username yourUserName you add it to yourplugin settings on the jQueryFacebookWall settings page in the Facebook User field.

Create / Get your Facebook Account App Id/Key and Secret

  1. Log into your Facebook Account.
  2. Go to https://developers.Facebook.com/apps
    1. If you have not registered with Facebook as a developer, do so.
    2. Click the Create New App button in the upper right hand corner to create a Facebook App.
    3. Fill out your App info, name, etc. The name is the only necessary field.
  3. Make note of your App Id/API key and App Secret they will be used to generate you Facebook Access Token.
  4. Use your App Id/API key for 'yourAppId' in the plugin call. Image

Get your Facebook Access Token

You should be able to retrieve an Access Token via the setting page, if you cant your can try running the jQueryFacebookWallWPLight php access token retrieval script by hand. To use it:

  1. Open fb_get_app_token.php and enter your Facebook App Id and Secret on lines 19&20.

15 $app_id = '----------------'; 16 $app_secret = '----------------';

  1. Save and exit the file.
  2. Generate a Facebook access token for your Facebook App by running fb_get_app_token.php in your browser. If you have unzipped the plugin and put it in, say, yourDomainWebRoot/jQueryFacebooWall/, then in your browser open http://www.yourdomain.com/fb_get_app_token.php
  3. fb_get_app_token.php will retrieve an access token from Facebook and write it to the fb_app_token.php file. Make sure that fb_app_token.php has full write permissions.
  4. Open fb_app_token.php - it should contain something that looks like this: {"appToken":"2450 blahblahblahblahblah|fkLcyxj6C-_blahblahblahblahblah"}
  5. If it doesn't, you didn’t get an access token from Facebook. An alternative method of retrieving an App access token is running http://www.yourdomain.com/fb_get_app_token.php?debug=true This will show debugging information for the script. If it returns an access token, copy and paste it into fb_app_token.php [Image](http://ironlasso.com/jQueryFacebookWallWPLightZip/docImages/fbAccessToken.png" style="width:750px">
  • To generate an App access token via the fb_get_app_token.php script, php must have https wrapper enabled. In your php.ini ;extension=php_openssl.dll must be uncommented. If you can’t do this you may have to contact your hosting provider or system administrator.

Get your Facebook Access Token - Without php

If your host doesn't support php, you don't have php's https wrappers enabled, or you just like doing things by hand, you can retrieve a Facebook access token by the following means:

  1. In the URL below, replace app_secret and app_secret with the App Id and App Secret you retrieved from Facebook in the previous step
  2. https://graph.facebook.com/oauth/access_token?client_id=app_id&client_secret=app_secret&grant_type=client_credentials
  3. Copy and past the URL in your browser and Facebook will return an App access token to you. It will be something like: access_token=256518697824517|nLKpMxbgiABaYfjhSSHf1GJj
  4. Open the fb_app_token.html The contents look like this: {"appToken":"If you see this you haven't generated your App token yet"} Replace the "If you see this you haven't generated your App token yet" with the access_token you retrieved from Facebook. Make sure to leave the quotes. It should looks like this when your done: {"appToken":"256518697824517|nLKpMxbgiABaYfjhSSHf1GJj"}
  5. Save and close fb_app_token.html

Facebook Pages vs. Facebook User Accounts

jQueryFacebookWallWPLight plugin makes use of Facebook’s open graph API, which has various levels of authentication requirements. Facebook pages have looser restrictions than user accounts; therefore, the plugin can retrieve more info (posts and album data) for pages than normal accounts. jQueryFacebookWallWPLight will work with normal accounts, but you will not be able to retrieve album data and you will have to edit the permissions of your posts and photos in your Facebook account. If you don’t have a Facebook page, you should consider creating one. You can do so by logging into Facebook and going here: https://www.Facebook.com/pages/create/

Here are the caveats imposed by Facebook's authentication requirements:

  • Pages can have albums.
  • Pages can show all posts.
  • User accounts can’t have albums.
  • User accounts don’t include all posts.

Requires: 3.5.1 or higher
Compatible up to: 3.8.3
Last Updated: 2014-2-15
Downloads: 540

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.