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

  • SEARCH
  • Home
  • 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 7008401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:43:49+00:00 2026-05-27T21:43:49+00:00

The Facebook comments count can be done in three different ways: (without directly using

  • 0

The Facebook comments count can be done in three different ways: (without directly using JS)

<fb:comments-count href="http://example.com" />

<iframe src="http://www.facebook.com/plugins/comments.php?href=example.com" />

<div class="fb-comments-count" data-href="http://example.com">0</div>

The issue, however, is that doing something like this messes things up:

<p><div class="fb-comments-count" data-href="http://example.com">0</div> comments</p>

…because a <div> is firstly, not valid inside a <p> tag and secondly, looks wrong (though this could be fixed with CSS).

Basically, my question is: is there a way to do the above without using a <div> (a <span> for example), bearing in mind that I want to use the HTML5 method and (if possible!) want to avoid using javascript?

Clarification: I would like to avoid writing extra JS in the page simply because the MVC view currently looks nice and clean and I would prefer to keep it that way. Obviously, I’m still including the Facebook Connect library.

  • 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-27T21:43:49+00:00Added an answer on May 27, 2026 at 9:43 pm

    So, one solution would be to use a DIV instead of a P as the outer element.

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

Sidebar

Related Questions

I know two ways to retrieve the number of comments on Facebook: <fb:comments-count href=http://example.com/></fb:comments-count>
I'm using Facebook Connect's Comments Box ( http://wiki.developers.facebook.com/index.php/Comments_Box ) to handle comments on my
I have a webpage on which I added a facebook comments plugin. <fb:comments href=http://mywebsite.com
This FQL multiquery, for example: https://graph.facebook.com/fql?q={posts:SELECT actor_id,message,permalink,created_time,comments.count FROM stream WHERE source_id=me(),actors:SELECT uid,name,pic_square,profile_url FROM user
I want to add Facebook comments using JavaScript (jQuery) to be able to customise
I am trying to put comments on Facebook wall using jquery. But my ajax
I'm doing this facebook comments for a friend and I can't get any info
I am using the Facebook comments plugin on WordPress and the comments box is
To get the facebook comment count, I'm doing this: <div id=fb-root> </div> <script src=http://connect.facebook.net/en_US/all.js#appId=555555&amp;xfbml=1>
I'm using the Facebook Comments social plugin and I want to be able to

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.