Facebook Integration

Display your Facebook Fanpage widget in your sidebar or post content via a shortcode. Enable Facebook comments next to or instead of the WordPress comments.

Facebook Fanpage

Widget

You may display your Facebook Fanpage widget in your sidebar by following these steps:

  1. Navigate to Appearance → Widgets.
  2. Drag the Facebook Fanpage widget to the desired widget area.
  3. Configure available widget options and click Save.

Shortcode

You may also add Facebook Fanpage in your post or page content by adding the following shortcode:

[[powerkit_facebook_fanpage href="https://www.facebook.com/envato"]]

Accepted Attributes

href

Facebook Page URL. (Required)

hide_cover

Hide Cover. Default is false.

show_facepile

Show Facepile. Default is false.

show_posts

Show Posts Default is false.

small_header

Small Header. Default is false.

Example

[[powerkit_facebook_fanpage href="https://www.facebook.com/envato" hide_cover="false" show_facepile="false" show_posts="false" small_header="false"]]

Facebook Comments

To enable Facebook Comments on your website, navigate to Settings → Discussion → Facebook Comments.

Access Tokens

User Access Token

Go to https://developers.facebook.com/apps.

Click on “Add a New App“:

Add your application Display Name and contact email and click on “Create App ID“:

Go to https://developers.facebook.com/tools/explorer:

  1. Select your newly created app in the “Facebook App” field.
  2. Select “Get User Access Token” in the “User or Page” field. Confirm all the requests.
  3. Click on the “Add a Permission” button, select “Events Groups Pages” and then “manage_pages“.

Click on “Get Access Token“. Confirm all the requests.

Select your Facebook page from the list on the “What Pages do you want to use with your application?” and click “Next“:

Make sure the “Manage your Pages” option is set to “YES” and click “Done“:

Click “OK“.

Then copy the token from the “Access Token” field by clicking on the clipboard icon to the right of it.

App ID & App Secret

Copy the App ID and App Secret from your app’s Basic Settings page: