I am working on my new site, and I wanted to intergrate the facebook comment box so people could leave authentic feedback.
I've got the box on the site, created my app , got my app ID and my facebook ID. Put them in the meta tags but it still won't let me delete peoples comments. I had a friend put a test comment on for me to try.
The page is www dot bodmaster dot com/product/Bodology/EFX-10%20Oxygenator
I hovered the mouse over my facebook display pic to get my FB ID from the url...
This is how I got my app ID, and shows all my settings...
I've added the following meta tags to the page...
<meta property="fb:admins" content="10150317838260636" />
<meta property="fb:app_id" content="414103721981616" />
Just to be thorough this is the fb script added to the page...
<!-- facebook script -->
<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=414103721981616";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- end facebook script -->
and the code for the comment box...
<?php $url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?>
<div class="fb-comments" data-href="<?php echo urlencode($url); ?>" data-num-posts="10" data-width="470"></div>
Facebook did say, "it may take a few moments to update the servers"
It's not working after an hour, am I not waiting long enough?
Any assistance would be greatly appreciated from you wizards.
I see the problem here:
I had a friend put a test comment on for me to try. The page is www
dot bodmaster dot com/product/Bodology/EFX-10%20Oxygenator
Change:
<?php $url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?>
To:
<?php $url = (!empty($_SERVER['HTTPS'])) ? "http://www.".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://www.".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; ?>
Reason:
Your **site URL** is: http://www.bodmaster.com (set in your app settings)
Your comments URL is set to: http://bodmaster.com **or** https://bodmaster.com
Change the code as described above and...
Your comments URL is set to: http://bodmaster.com (even if SSL is currently in use)
Let me know if this works.
Related
How to delete a irrelevant fb comment from my website. What i am doing is as:
<div id="fb-root">
</div>
making myself as admin :
<meta property="fb:admins" content="myfbid"/>
<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=MyID";
fjs.parentNode.insertBefore(js, fjs);
} (document, 'script', 'facebook-jssdk'));</script>
Placed where i want FB-Comment box to be rendered:
<div class="fb-comments" data-href="mysiteurl.com" data-width="600"></div>
My basic question is how can i delete a comment which is vulgar and publicly visible ? Although i have set myself as moderator in tools then also i am not able to delete other people comment(facebook) from my website i can only mark them as spam but others can easily see the comment on thier individual login. Thank You
I used the following method:
Put this in you Document in the head section:
<meta property="fb:admins" content="jayeshjain24ec" /> //username of moderater
<meta property="og:url" content="http://www.something.com/" />
step 1) Go to this url : https://developers.facebook.com/tools/debug
step 2) Enter your URL and click on debug.
In case if there is anything to be corrected,it will be mentioned here.
step 3)Correct all the warnings.Check the Scraped URL link at the bottom.Make sure it gets all the required Meta tags.
You will get a moderation option on your website once everything is ok.
ALTERNATE SOLUTION:
Give yourself admin rights for the app(there is an option in settings).
go to this url: https://developers.facebook.com/tools/comments?view=queue
I want to add a Facebook like button in my website.
If I use the following code like button is working but on log in the error message : "An error occurred with Facebook Platform Opt In. Please try again later" is displayed.
<html>
<head>
<title>My Great Web page</title>
</head>
<body>
<iframe src="http://www.facebook.com/plugins/like.php?href=guiuiu"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"></iframe>
</body>
</html>
Why this is happening. Do I need to create a fb API for successful login?
you must provide a valid url in order to work with the iframe method.
Anyway - you better use the xfmbl implementation of the like button
in order to do that you will have to open application (on http://developers.facebook.com/apps)
then paste this code after the <body> tag of your page (put the APP ID where it belongs)
<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=APP_ID_GOES_HERE";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
add this namespace to your html node:
<html xmlns:fb="http://ogp.me/ns/fb#">
and put this instead of the iframe you used
<fb:like send="false" href="YOUR_PAGE_ABSOLUTE_URL" width="450" show_faces="true"></fb:like>
for any further information you may refer here:
http://developers.facebook.com/docs/reference/plugins/like/
The accepted answer is wrong.
You'll get the same error the OP described no matter what implementation you use. The issue is due to a bug on Facebook's side of things.
It's currently OPEN, ASSIGNED, and set to HIGH priority. See here for more details: http://developers.facebook.com/bugs/228506407275556
Any assistance will and is greatly appreciated. Thank you in advance!
I used code generated by Facebook Developer and inserted the code into this WordPress site page:http://www.stilehair.com/studio code is below. When I open the page it looks right, BUT when I click on the "Like" button a pop-up appears and asks me to log into FB (even though I am already logged into FB.)
The box shakes and asks me again and never excepts my correct log in info, Nor does it except the "like".
This happens on all my browsers, iphone and ipad.
All software is up to date.
I've cleared the Cache'.
Tried numerous attempts at altering the code and/or method of inserting box.
Ran it through the FB Debugger
Searched the boards for answers and no solution is working.
<div id="fb-root"></div>
<script type="text/javascript">// <![CDATA[
(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";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
// ]]></script>
<div class="fb-like-box" data-href="http://www.facebook.com/Stilehair"
data-width="292" data-colorscheme="dark" data-show-faces="false"
data-stream="false" data-header="false"></div>
I've researched several other questions with no results to help rectify my challenge.
Adding a like box seems like such an easy thing to do from all I've read on Facebook and Forums.
Thank you.
I used this code on my clients wordpress sites.
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="<?php echo get_permalink(); ?>" show_faces="true" width="450" send="true"></fb:like>
the above code is working fine on all of my clients wordpress blogs. For example view any post page [link]
I've just added this snippet to my wordpress blog...
<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_GB/all.js#xfbml=1&appId=145875562182317";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
With the code below on my single.php template.
<div class="fb-comments" data-href="<?php the_permalink() ?>" data-num-posts="10" data-width="642"></div>
Source taken from facebook developers site...
http://developers.facebook.com/docs/reference/plugins/comments/
This has added a sweet facebook comments box onto my blog posts. But I need to moderate the comments some how?
So I've read the documentation and it says add this meta into your head with my user ID.
<meta property="fb:admins" content="6468594984"/>
This seemed to work, only if I went to that post when I was logged in as facebook user 6468594984 - and I could see a moderator view button on the comments box. So this worked.
How ever this is slightly impractical.. so I went to the next level.
I created a facebook app with the correct site URL on the website tab ending with... /
Changed my previous meta for this...
<meta property="fb:app_id" content="766484684648"/>
and I presumed by going to...
http://developers.facebook.com/tools/comments
...that I could now moderate all the comments for my wordpress site by viewing app 766484684648.
But no comments are appearing on app id 766484684648 within the tools comments site.
Can any one help enlighten me on where I've gone wrong or where I need to fix.
Thanks hugely!!!
After you changed your meta tag, did you run your URL through the URL Linter? Perhaps Facebook just had not detected the change you made to the meta tag, due to caching.
Try pasting the URL you use for the comments module into http://developers.facebook.com/tools/debug and verify that there are no errors, and that the app id is coming through.
I integrated FB comments on a static page. I can comment and see my comments, but I have problems with moderating comments in the moderation tool. There are no comments in the tool.
I have this code, which should help me to modearete:
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml">
<meta property="fb:admins" content="7675xxxxx" />
<meta property="fb:app_id" content="xxxxx5675551420" />
And in inside the body I have:
<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/de_DE/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-href="http://www.example.com/demo" data-num-posts="10" data-width="900"></div>
What is the problem here?
By the way, how can I set it up, that also NON-Facebook Users can comment? I want to
allow anonymous comments. I see no settings for that?
thx
Did you added your user account as moderator in http://developers.facebook.com/tools/comments?
If not, try to add your user account in your application as moderator. Then see is it working.
Please note moderation tool will be available only for non-admins's comments. You cannot moderate your (or other admins') comments.
Edit: Moderators can moderate only 'normal' users comments. Try commenting from a FB account which is not in the comment moderators list.