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 6642053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:53:04+00:00 2026-05-25T23:53:04+00:00

i need separate comment thread for each post on my website, so i followed

  • 0

i need separate comment thread for each post on my website, so i followed instructions at http://developers.facebook.com/blog/post/472, ie i inserted the code:

 <div id="fb-root"></div>
 <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
 <fb:comments href="www.mysite.com" xid="postPOST_ID_HERE"></fb:comments>

under each post.

but it doesn’t work and there is SAME comments thread under each post.

if i try this code:

 <div id="fb-root"></div>
 <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
 <fb:comments href="http://www.mysite.com/news.php?id=POST_ID_HERE"></fb:comments>

it seems to work, ie i get separate comment thread per post. but according to facebook instructions href parameter needs to be canonical url. am i doing something wrong in the first case or is the second example way to go (even if against facebook manual)?

  • 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-05-25T23:53:05+00:00Added an answer on May 25, 2026 at 11:53 pm

    I don’t think you need to use both the href and the xid variables. I think the href variable is the newer version according to Facebook Developer Blog this is the new code:

    <div id="fb-root"></div>
    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    <fb:comments href="YOUR_CANONICAL_URL"></fb:comments>
    

    It also says “If you already have the original Comments Box installed, include the parameter migrated=”1″ to keep existing comments” and shows this as an example:

    <div id="fb-root"></div>
    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
    <fb:comments xid="YOUR_XID" migrated="1"></fb:comments>
    

    I am using the first version I posted here, but using addresses like you mentioned, and it works. So I’d say go with the second version even if it goes slightly against what they say. It works properly for me.

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

Sidebar

Related Questions

Do I need a separate controller for the below? http://localhost/bookmarks --> bookmarks controller http://localhost/bookmark/
I need some advice as to how I easily can separate test runs for
I have an odd need to open two separate instances of excel and having
Need to an expression that returns only things with an I followed by either
Update from comment: I need to extend linq-to-sql classes by own parameters and dont
I need to convert a list (or a dict) into a comma-separated list for
I need to support exact phrases (enclosed in quotes) in an otherwise space-separated list
Suppose you have two seperate ASP.NET Web Application projects that both need to use
i have a log file which contains hundreds/thousands of seperate XML messages and need
Need a function that takes a character as a parameter and returns true if

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.