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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:40:48+00:00 2026-05-27T13:40:48+00:00

I am creating facebook comment box,it works fine with the static urls, but my

  • 0

I am creating facebook comment box,it works fine with the static urls, but my url contains the query string parameters with it like this: http://bugnull.com/article_content.aspx?id=19&title=code+testing.

I want to have the different comments for each unique url.

Here is the code I am using :

Code just after the body tag:

   <div id="fb-root"></div>
<script>    (function (d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=XXXXXXXXXXX";
        fjs.parentNode.insertBefore(js, fjs);
    } (document, 'script', 'facebook-jssdk'));</script>

  **and code for the comment box:**


<div class="fb-comments" data-href="http://bugnull.com/article_content.aspx?id=(.*)&title=(.*)" data-num-posts="2" data-width="500"></div>

Here I want to change the url such that the above url is manipulated such that it allows me to have unique comment thread for each unique page.

  • 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-27T13:40:49+00:00Added an answer on May 27, 2026 at 1:40 pm

    I found the solution which was quite fascinating,here is the manipulation in the code required:

    In the div tag :

    <div id="fbdiv" runat="server "class="fb-comments" data-href="http://bugnull.com/article_content.aspx?id=(.*)&title=(.*)" data-num-posts="2" data-width="500"></div>
    

    I included runat=”server” and in aspx.cs it was accessible:

    fbdiv.Attributes["data-href"]="xyz.com?title="+Request.QueryString["title"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating facebook application.I want to create a event.I tried following url but
Am creating a Facebook like chat application.(Say for example am chatting with 4 users)
I am Creating A facebook that Retrieves 10 Random friends.But I need some code
I'm creating a Facebook-Like chat. It gets the latest messages Not Read from a
I'm currently creating a facebook-like news feed, and I'm wondering if I'm better off
I'm creating a facebook application at the moment and need to create a comment
I am creating Facebook recommendation box here . The domain is http://www.mydomain.co.il/. For example(http://www.sport5.co.il/)
I 'm creating FaceBook like application and everything is centered around Person model. Status,
I have a-facebook-like mentioning feature in my app. When creating posts or comments user
I am creating a Facebook Wall like structure and used repeater control for that

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.