Where should one place the meta tags to embed the Facebook Comments plugin? - facebook

I would like to embed the Facebook Comments plugin on my site.
Where should I place the meta tags in order to add moderators for the comment box?
I've tried merging the tags with the div and placing it between the div like this, but with no results:
<div class="fb-comments" data-href="http://example.com meta property="fb:admins" content="{12345678901234567890}"/" data-num-posts="1" data-width="600"></div>
<div class="fb-comments" data-href="http://example.com <meta property="fb:admins" content="{12345678901234567890}"/>" data-num-posts="1" data-width="600"></div>
<div class="fb-comments" data-href="http://example.com" data-num-posts="1" data-width="600"><meta property="fb:admins" content="{12345678901234567890}"/></div>
The comment box does work without the meta tags, though without the moderator support of course.
If it matters, my site is published on webs.com.

The meta does not go in the plug-in code. The meta tags go into the HTML of the site located at the data-href's URL. It is placed in the page's <HEAD> section.

Related

How to add meta tags to Liferay page

For a Facebook share button, I deed to add some meta tags to a page in Liferay.
The result of the HTML should look like the following example:
<html>
<head>
<meta property="og:title" content="My website title" />
<meta property="fb:app_id" content="4711" />
</head>
<body>...</body>
</html>
How can I do that in Liferay WITHOUT coding but just by configuration in the admin control area?
Note: For www.mydomain.com/en the content of the meta tag should be in English. For www.mydomain.com/de it should be in German.
If this is not possible by configuration easily, it can be all in one single language.
You can add fb meta tags in portal_normal.vm in theme.
Also,these changes are not instantly reflected but takes a while until the fb crawlers re cache content from your tags.

Facebook Like button in wordpress theme

I have put a facebook Like button on my 'single.php' page and i am receiving the following error:
The page failed to provide a valid list of administrators. It needs to specify the administrators using either a "fb:app_id" meta tag, or using a "fb:admins" meta tag to specify a comma-delimited list of Facebook users.
This is my code:
<div class="fb-like" data-href="<?php echo get_permalink(); ?>" data-send="false" data-width="450" data-show-faces="true"></div>
I have also added the following meta tags (with the correct id's):
<meta property="fb:admins" content="<FB ID HERE>"/>
<meta property="fb:app_id" content="<APP ID HERE>" />
Any ideas?
Did you try the different tips you can find here :
I Like Button Problem - Facebook
You will find many ways to remove this problem.
I hope it will work for you.

fb:comments - how to moderate comments

I have a webpage on which I added a facebook comments plugin.
<fb:comments href="http://mywebsite.com" num_posts="20" width="510"></fb:comments>
How would I be able to moderate those comments? "mywebsite.com" is not actually the address where the page with the comments plugin is available.
You also need to include the fb:admins and fb:app_id tag in the header of the site that is using the comments plugin:
<head>
...
<meta property="fb:app_id" content="APP_ID"/>
<meta property="fb:admins" content="USER_ID"/>
...
</head>
Once you've done this you will see the moderate links on the comments box. You can also navigate to
https://developers.facebook.com/tools/comments
to see a list of all your apps that have comments plugins enabled.
More information here:
https://developers.facebook.com/docs/reference/plugins/comments/

Facebook share 'clickable' url-link issue

I have a problem with clickable url-link in Facebook.
As you can see nr 1. is not clickable but nr 2 and 3 are.
Sometimes it is clickable and other times not. (randomize)
What I want is that all the share links are not 'clickable' like nr 1.
How can I fix this? I'm stuck for several days.
My php code:
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<li class="icon share_facebook l" id="facebookshare"><a name="fb_share" type="button" share_url="http://www.smartnet7.com/promo.php?id_promo=<?php echo $id_promo?>&username=<?php echo $username ?>"target="_blank"></a> </li>
I hope some body can help me!
The problem might be with the page that you are trying to share. As mentioned earlier in the comments above, you may check the same page's link by Facebook Linter. To achieve a uniformity you may want to include the Opengraph meta tags as recommended by Facebook http://developers.facebook.com/docs/opengraphprotocol/
In your case it looks like an issue with Facebook populating your page url so you might want to include <meta property="og:url" content="your page's complete url"/> within the <head> </head> tags in your page. Even though this url can be determined from your page alone but Facebook recommends you to include these tags to avoid any inconsistency.
May be number 1 isn't clickable as it is not a valid url(although browser should figure it out). It should have www. in the beginning

Is it possible to define different open graph parameters for more than one blog post on a page?

I am building the front end of a blog. The page I'm currently working on - which has about 6 different blog posts previewed - requires that the user be able to share the blog post landing page via Facebook using addThis. Is it possible to define different open graph parameters for more than one blog post on a page? I know the tags are added to the as metadata, but I wasn't able to find any info on how to define a different url other than the current page url within the share link. I am using this:
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xxxxxx"></script>
<!-- AddThis Button END -->
...and these are the attributes offered by addThis to define custom params:
<a href="http://www.addthis.com/bookmark.php"
class="addthis_button"
addthis:url="http://example.com"
addthis:title="An Example Title"
addthis:description="An Example Description">
</a>
The problem is that I can't seem to get this to work for FB. These are sample open graph tags that are (theoreticall) defined in the
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.BlogPost.com/post1" />
<meta property="og:image" content="http://www.BlogPost.com/image1.jpg" />
<meta property="og:site_name" content="http://www.BlogPost.com" />
The FB share links keep picking these up instead of the custom info... and I can't omit this because I need it for the page level share link. Adding the attributes works for the twitter button, btw... just not the FB one.
I'd appreciate any insight into how to do this or whether or not it can be done...
Thanks!
I think it's one object per page. If the landing page has multiple entries, maybe create your object based around that premise, that its either a full site or a site of articles tagged "programming" or something.