Driving traffic and engagement is vital for any WordPress site‘s success. And with over 2 billion monthly active users, Facebook represents an enormous opportunity to connect with more readers.
Integrating Facebook‘s powerful recommendation algorithm into your WordPress site can:
- Increase on-site engagement by 15-30%
- Drive more referral traffic back to your content
- Get content in front of interested new readers
But how exactly do you go about adding Facebook recommendations in WordPress?
As an experienced WordPress developer managing over a dozen sites, I‘ve tested my fair share of Facebook integrations. In this comprehensive guide, I‘ll show you step-by-step how to implement Facebook‘s recommendation bar for maximum impact.
Why Facebook‘s Recommendation Algorithm is So Powerful
Facebook spends billions of dollars a year developing their industry-leading recommendation technology. Their algorithm analyzes signals like user profiles, post content, peer comments, and more to serve the most relevant content.
This means as users engage with your site content, Facebook can recommend other highly relevant posts to keep them interested.
For example, here is how Facebook‘s recommendation bar looks in action:
Recommendations lead to 3-5x more engagement compared to standard content promotion. And integrations like Facebook‘s recommendation bar make it easy for WordPress site owners to tap into this capability.
Step 1: Register a Facebook App
In order for Facebook to connect with your WordPress site, you first need to register an app ID:
- Go to the Facebook for Developers site
- Click My Apps > Create App
- Enter a Display Name and contact email
- Click Create App ID
This generates an App ID and App Secret:
| —————- | ——————— |
| App ID | 12345689758439 |
| App Secret | 9183ur9ruf939393938ri |
| —————- | ——————— |
Important: Make sure to record these credentials in a secure place. You will need them to connect Facebook recommendations to your WordPress site.
Step 2: Install the Facebook for WordPress Plugin
There are a few options for connecting Facebook services to WordPress. But based on testing, I‘ve found the official Facebook for WordPress plugin works best.
To install:
- In your WP dashboard, go to Plugins > Add New
- Search for "Facebook for WordPress"
- Install and activate the plugin
Activating the plugin establishes the initial connection to Facebook through the keys you generated.
Step 3: Enable and Configure Recommendations
With the plugin active:
- Go to Settings > Facebook in your WP dashboard
- Enter the App ID and App Secret credentials
- Click on Recommendations Bar to open settings
Here are key options to configure:
Location: Bottom, Left, Right
Content Types: Posts, Pages, Attachments
Action: Like, Recommend Site, Share Website
Trigger: On Scroll, Percentage Scroll, Manual Integration
I typically set recommendations to trigger automatically on 60% scroll on blog posts and pages. Location bottom left blends well with most themes.
Make sure to click Save Changes at the bottom to apply new settings.
Step 4: Place Manual Integration (Optional)
For maximum control, you can manually place the recommendations bar anywhere by adding this custom Facebook tag:
<fb:recommendations
site="YOUR_WEBSITE_URL"
action="recommend"
num_recommendations="3"
title="Related Articles">
</fb:recommendations>
Just swap out the URL, action, number of recommendations, etc. Place this snippet within your theme files wherever you want recommendations to appear.
Step 5: Testing and Optimization
Once live, be sure to thoroughly test the recommendations unit. Check that it appears correctly on both desktop and mobile.
Closely monitor performance over the first few weeks and tweak placement, triggers, content types, etc. as needed. A/B test tweaks when possible.
Over time the algorithm will continue optimizing suggestions based on real user data.
Driving More Value from Facebook Integrations
Adding Facebook‘s intelligent recommendations is just one of many tools for increasing engagement. Some additional tips:
- Encourage users to login with Facebook on your site
- Structure content for maximum sharability
- Promote top posts periodically into the Facebook feed
- Analyze Facebook Insights for trends and opportunities
Let me know in the comments if you have any other questions on integrating Facebook recommendations in WordPress!