How to Seamlessly Add Facebook Comments in WordPress
Learn how to add Facebook comments in WordPress website to boost social engagement and simplify the commenting experience for your visitors. Step-by-step guide included.
Engaging your audience through comments is a powerful way for adding Facebook comments in wordpress can amplify this interaction, as comments left on your site are shared on Facebook, reaching a broader audience. Plus, most users are already logged into Facebook, making it easier for them to comment.
Setting Up Your Facebook App
To integrate Facebook comments, you’ll need to create a Facebook App. Here’s how to do it:
Visit Facebook Developers: Go to the Facebook Developers website. In the top right corner, click on “My Apps” and select “Add a New App.”
Create Your App: Name your app – it’s helpful to use your website’s name for consistency – and click “Create App ID.”
Configure Your App: You’ll see the App Dashboard. Navigate to Settings > Basic. Click “Add Platform” at the bottom, choose “Website,” enter your site’s URL, and save changes.
Set App Domains and Privacy Policy: Add your domain in the “App Domains” field and link to your site’s privacy policy in the “Privacy Policy URL” field. Save these changes.
Make Your App Live: At the top of the page, switch the status from “In Development” to “Live.”
Generating the Comment Code
Next, you’ll need to get the code to integrate Facebook comments into your site:
Access Facebook Comments: Go to the Facebook Comments plugin page. Click “Get Code.”
Select Your App: In “Step 1,” choose the Facebook App you just created from the dropdown menu.
Insert the Code:
Step 2: Copy the code provided and add it to your site. Use the Insert Headers and Footers plugin to paste it into the “Footer Scripts” box if you’re not comfortable with code editing.
Step 3: Replace your theme’s comment area with the provided code. This typically involves editing the comments.php or single.php file. For Genesis child themes, use ‘<?php echo get_permalink(); ?>‘ to ensure comments are linked to the current post’s URL.
As the app creator, you can moderate comments. To add other moderators:
Navigate to Roles: Go back to Facebook Developers and select your app from the “My Apps” dropdown.
Add Administrators: Click on “Roles” in the left column. Then, click “Add Administrators” and type the person’s name. If they’re not your Facebook friend, use their profile URL slug.
If you are not friends with them, use the URL slug from their Facebook profile. For instance, my Facebook profile is https://www.facebook.com/noomaan, so you’d use “NooMaan”.
Conclusion
Integrating Facebook comments on your WordPress site is a fantastic way to boost engagement and make commenting seamless for your users. Follow these steps to get started and enjoy a more interactive and socially shared comment section on your site.
Learn how to add Facebook comments in WordPress website to boost social engagement and simplify the commenting experience for your visitors. Step-by-step guide included.…
Unlock the power of Gutenberg shortcodes in WordPress to create dynamic, interactive, and SEO-friendly content. Learn how to use, customize, and optimize shortcodes for…
Learn how to master Gutenberg theme development for WordPress with our comprehensive guide. Discover essential techniques, best practices, and advanced tips to create visually…
Learn how to remove core WordPress blocks and improve your theme's design and functionality. Our guide provides detailed steps for unregistering unnecessary blocks.
Recommended Freeelancing Services
We Value Your Privacy
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
How to Seamlessly Add Facebook Comments in WordPress
Learn how to add Facebook comments in WordPress website to boost social engagement and simplify the commenting experience for your visitors. Step-by-step guide included.
Engaging your audience through comments is a powerful way for adding Facebook comments in wordpress can amplify this interaction, as comments left on your site are shared on Facebook, reaching a broader audience. Plus, most users are already logged into Facebook, making it easier for them to comment.
Setting Up Your Facebook App
To integrate Facebook comments, you’ll need to create a Facebook App. Here’s how to do it:
Generating the Comment Code
Next, you’ll need to get the code to integrate Facebook comments into your site:
<?php echo get_permalink(); ?>
‘ to ensure comments are linked to the current post’s URL.Moderating Facebook Comments
As the app creator, you can moderate comments. To add other moderators:
Navigate to Roles: Go back to Facebook Developers and select your app from the “My Apps” dropdown.
Add Administrators: Click on “Roles” in the left column. Then, click “Add Administrators” and type the person’s name. If they’re not your Facebook friend, use their profile URL slug.
If you are not friends with them, use the URL slug from their Facebook profile. For instance, my Facebook profile is
https://www.facebook.com/noomaan
, so you’d use “NooMaan”.Conclusion
Integrating Facebook comments on your WordPress site is a fantastic way to boost engagement and make commenting seamless for your users. Follow these steps to get started and enjoy a more interactive and socially shared comment section on your site.
Noman Ali
Noman Ali is web developer at Dev House, a custom software development agency focusing on high performance sites for web applications.
Ready to upgrade your website?
Other articles in this series
How to Seamlessly Add Facebook Comments in WordPress
Learn how to add Facebook comments in WordPress website to boost social engagement and simplify the commenting experience for your visitors. Step-by-step guide included.…
How to add Gutenberg Shortcodes in WordPress: A Comprehensive Guide
Unlock the power of Gutenberg shortcodes in WordPress to create dynamic, interactive, and SEO-friendly content. Learn how to use, customize, and optimize shortcodes for…
Learn Gutenberg Theme Development
Learn how to master Gutenberg theme development for WordPress with our comprehensive guide. Discover essential techniques, best practices, and advanced tips to create visually…
4 Easy Steps to Remove Core WordPress Blocks
Learn how to remove core WordPress blocks and improve your theme's design and functionality. Our guide provides detailed steps for unregistering unnecessary blocks.
Recommended Freeelancing Services