Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9209563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:52:23+00:00 2026-06-18T00:52:23+00:00

I have a problem with the new Facebook plugin for WordPress. I would like

  • 0

I have a problem with the “new” Facebook plugin for WordPress. I would like to re-position it on my post page. I’ve read somewhere else (or maybe here) that you could use the comment box from developers.facebook.com but I want to use the original Facebook plugin. So here goes:
I’ve found (in the plugin folder) where Facebook have put the code to install comments box in my theme. It looks like this:

public static function the_content_comments_box( $content ) {
        global $post;

        if ( ! isset( $post ) )
            return;

        $options = get_option( 'facebook_comments' );

        if ( ! is_array( $options ) || empty( $options ) )
            return $content;

        // closed posts can have comments from their previous open state
        // display noscript version of these comments
        $content .= "\n" . self::comments_markup( 'noscript' ) . "\n";

        // no option via JS SDK to display comments yet not accept new comments
        // only display JS SDK version of comments box display if we would like more comments
        if ( comments_open( $post->ID ) ) {
            $url = apply_filters( 'facebook_rel_canonical', get_permalink() );
            if ( $url ) // false could happen. let JS SDK handle compatibility mode
                $options['href'] = $url;
            $content .= self::js_sdk_markup( $options );
        }

        return $content;
    }
} 

How do put the Facebook comments box in the bottom of my post page?
You can look at a random post page here: My temporary site What I’m ultimately trying to do is to have Facebook Comments box after Relaterede indlæg (related posts).

Is this at all possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:52:24+00:00Added an answer on June 18, 2026 at 12:52 am

    I don’t use the FB plugins for WordPress because they seem bloated to me. However, here’s a simple one-line code that I use to add a facebook comments box. You can place it anywhere in any template.

    <div class="fb-comments" data-href="<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?>"></div>
    

    PLEASE NOTE: this method requires that you have the Facebook SDK installed on the site. Also, it won’t work as a widget unless you have enabled the ability to execute PHP in your widgets (requires a plug-in).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem on my blog: http://osify.com while processing add new post with above
I have a game in Facebook and suddenly a new problem came out. In
as I have a problem with the new facebook sdk for ios (see more
I have a wierd problem with integrating a basic post to facebook feed in
I have a problem with integrating the Feed Dialog of the new Facebook SDK
I have just created a new facebook application to use in a page tab.
I just added a Facebook Like/Send plugin onto my page. I QA'd the plugin
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I have new problem. My code: .method public static void Main() cil managed {
I have a new problem with a python script. When I try to run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.