Does anyone else know why the notifications may not be working? I followed all the documentation - http://wiki.developers.facebook.com/ind … mments_Box and searched through every post I could find, but to no avail. Everything else works perfectly fine, except the notifications. I really need this option to work. Any suggestions?
Offline
Hi everybody,
please did anyone managed to embed fb comments box into a google sites page?
best Jan
Offline
Hello
I have made a simple site with a comments box, the code looks like this:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head></head>
<body>
<div> YOUR PAGE CONTENT </div>
<fb:comments></fb:comments>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"
type="text/javascript">
</script>
<script type="text/javascript"> FB.init("api-key", "my-url");
</script>
</body>
</html>
And it works fine!
one thing i would like to do though, is whenever a new comment is made, it gets posted on my applications facebook profile(not the users)
anyone able to help on this? couldnt seem to find the answar on goole/facebook wiki
thanks in advance ![]()
Offline
OOOO Facebook widgets finally work on Opera, when did that come in? Just noticed today. Can take away my sorry get a better browser messages now :p
Offline
rayhe wrote:
yousef wrote:
I was thinking it could be made quite simply initially by just adding 1 or 2 attributes in the Fb:comments tag. Something like:
Code:
<fb:comments xid="testID" username="theUsername" returnurl="http://www.testurl.com/"></fb:comments>Where the username attribute is optionally filled which will make either the username field in the comments box already filled or hidden. This could be done for e-mail addresses too. Would greatly improve functionality for Facebook Connect users with existing users.
This is something I want to do for the future but haven't gotten around to, unfortunately.
Any update with this? Surely it would only be a minor change as the username and e-mail fields already exist for Guest users. This would just make it tie in well with the whole FB Connect system (and would allow us to use this feature fully
...)
Offline
I'm having a pretty hard time getting this working in FF.
One thing I'd love to ask first is, we run on a dev and production server, is there a way to test code in a dev environment using the same API key as the production environment? I don't need this for any functionality, but it would add a large degree of convenience.
Now for the problem I'm running into.
I'm not too sure what it causing this.
Here is the link: http://monroenews.com/article/20091018/ARTS/710189998
This is just a random article, but depending when you visit it, this is the most recent one (so everything is properly loaded and cached on our production environment).
I'm able to get everything to load fine in IE, but in FF it isn't coming up. I'm not sure if this error is related, but in the error console of FF, it's giving me "unexpected end of XML source", and I'm guessing it's related. Any help you might have would be really appreciated!
Offline
faceless105 wrote:
Now for the problem I'm running into.
Hey!
You need to add:
xmlns:fb="http://www.facebook.com/2008/fbml"
to your HTML tag
so it will be:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">
hope this will help to solve your problem.
Offline
Thanks for the help. We've only had this plugin in place for a couple hours on a smaller part of our site to test and get feedback, but we're really loving it so far. I'm still going through the documentation, but I wanted to know if there is a way to add a "report comment" button to each post, as well as an a way to block users by ip? These are some issues we've had to do in the past. We used to allow anonymous posting, and it caused enough problems that after researching some options for requiring registration it led us to this app.
Any help you might be able to offer would be greatly appreciated.
Offline
Did you ever wanted to change the white-man-anonymous image of the comments-box?
this is how: http://forum.developers.facebook.com/vi … p?id=44091
Offline
well really since it allows the option to have anonymous users post we feel that a "report this comment" would be infinitely helpful. We're putting these comments on our news site, and the pages are auto generated, so right now all we can do is write a quick script to report by page.
Thanks again for the help, even as things are, I think we're going to continue using this.
Offline
I also wanted to check and see, is there a way to disable comments locally?
Offline
faceless105 wrote:
I also wanted to check and see, is there a way to disable comments locally?
I don't know if there is a feature for this,
but you can use a CMS to decide in which articles you want the comments box
for example I'm using the free Textpattern CMS and my code is like this:
<txp:if_comments_allowed>
<fb:comments></fb:comments>
<script type="text/javascript">
FB.init("abcdefghijklmnopqrstuvwxyz1234567890","/xd_receiver.htm");
</script>
<txp:else />
Comments are disable for this article.
</txp:if_comments_allowed>
and when I'm posting a new article I can decide if to allow comments or not with a radio-button of "Off/On"
I believe this can be done with most of the CMSs
another trick Idea is to have 2 different css files
that the second one is disable all the form (by using css 'display:none')
and just leave the comments
so in your CMS you can disable the commenting option after like 3 weeks or so,
and then show just the comments that already was posted
with the css file that disable the form and leave only the comments to be shown.
I didn't try it, but believe it can work fine. (if there is luck and you will not get an JS error or so)
_____________________________________________________
I found 2 bugs and reported on them in the Bugzilla last night,
the bugs are:
1.
Notifications:
right now they are just not working at all.
2.
Anonymous posts:
when you enter a new anonymous comment you ask to type your name & email address,
but the problem is with the default value of the "Name" field,
because if you leave it with the default value of "Name"
and just enter your email address, it is posting the comment with the default value of "Name".
So what I'm asking to fix is that the visitor must change the default value of the "Name" field
and only then be able to post the comment.
I will update here when I will recieve a response from Bugzilla/Ray C. He ![]()
and if you want here's the link to the bug report: http://bugs.developers.facebook.com/sho … gi?id=7299
Offline
and it's because of the anonymous posting option that we're really looking towards having a "report this post" button as well as an option to ban by IP since the blacklist and whitelist really only seems to apply to people who are members of facebook already
Offline
Hi,
I dont know why on the wall appear some debug.
screenshot: http://photos-e.ak.fbcdn.net/hphotos-ak … 6568_n.jpg
any clue ?
Offline
The #1 feature for me right now is 'get all comments for your site'. My newspaper website has a sidebar column of 'latest comments' to encourage debate. At the moment I have a really ugly process that works like this:
1. User leaves a comment - the addComment callback stores their comment text and the XID in my database.
2. I then query my database for all the XIDs that have comments
3. For EACH ONE of these results, I have to query Facebook's database to make sure the comment exists (the user might have deleted it)
4. Once I find all the matching comments, I can display them in my sidebar.
This means that to display my 7 latest comments, I have to run 8 queries. This is really painful and annoying and I couldn't find another way around it.
Is there any way this feature can be prioritised? If it's a matter of resources, just limit the frequency of queries?
Last edited by mattpointblank (2009-10-28 16:09:46)
Offline
Is there any way to retrieve the email addresses that anonymous (non-Facebook) users use when posting comments? Based on the FQL "comment" table schema, the email address is not available, but it must be stored by Facebook in order to notify anonymous users of replies... is there something I am missing?
If not, are there any plans to add this capability?
Offline
Hi,
I have a Wordpress blog, and on one (and only one) of my blog posts, the facebook connect Comment Box is behaving strangely. Here's the page:
http://www.darwinspet.com/2009/10/the-a … -for-dogs/
Take a look and at the bottom of the body copy and you'll notice that the comments load correctly (oldest comments at top, newest at bottom), but after a few seconds they switch so that the newest comment is at the top, and the oldest gets switched to the bottom. This is not happening on any other blog posts. What is causing this problem and how can it be solved?
Thanks,
-r3bb
Offline
<script src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<fb:comments xid="<?=$cats;?>_comments" numposts="5" simple="1" width="500px"> </fb:comments>
<script type="text/javascript">
var my_api_key = '<?=$appapikey;?>';
var channel_path = "xd_receiver.html";
FB.init(my_api_key, channel_path);
</script>
it still puts the url and a lot of code in the profile feed...
Offline
stardawn wrote:
it still puts the url and a lot of code in the profile feed...
1.
Try changing your:
http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php
to:
http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php
2.
stardawn wrote:
Code:
<script type="text/javascript"> var my_api_key = '<?=$appapikey;?>'; var channel_path = "xd_receiver.html"; FB.init(my_api_key, channel_path); </script>
why you are using your script like this?
your API key and your xd_receiver url are always the same, not?
if so, use it in a regular way like this:
<script type="text/javascript">
FB.init("abcdefghijklmnopq-YOUR-API-KEY-rstuvwxyz123456789","/xd_receiver.htm");
</script>
3.
Delete the 2 white spaces between:
width="500px"> </fb:comments>
4.
Change:
width="500px"
to
width="500"
Last edited by Gil Goldshlager (2009-11-07 02:51:07)
Offline
Hi, can I install this comment box to my Tumblr blog?
by the way it is: http://iamthezohan.tumblr.com/
Last edited by smoothfreeze (2009-11-07 08:48:33)
Offline
smoothfreeze wrote:
Hi, can I install this comment box to my Tumblr blog?
Yes you can!
I singed up to Tumblr for testing it, and it's works good even with XIDs! ![]()
here is the blog page I just open for testing where you can see it live:
http://gil-goldshlager.tumblr.com
btw: It's my first time hearing about this site, and I must say that it's very nice! ![]()
so let's get to the point and this is how you doing it:
1.
First of all you need to create your application at: http://www.facebook.com/developers
after creating your application you edit the settings by switching to the 'Connect' tab on the left side,
there you enter your blog url.
example:
Connect URL: http://iamthezohan.tumblr.com
Base Domain: iamthezohan.tumblr.com
that are the only 2 things you need to edit in your application.
and you click on 'Save Changes'
(of course you can also upload a Logo and Icon images if you wish to.)
Copy your API Key
that all you need to do on facebook.
2.
Go to your blog page (http://iamthezohan.tumblr.com) and click on the 'Customize' button
Click on the 'Theme' button
Click on the 'HTML' button
3.
Here we will do some changes and add & edit some codes:
replace:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
with:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">
search for:
</head>
add this code before above it:
<script src="http://static.ak.facebook.com/js/api_lib/v0.4/XdCommReceiver.js?2" type="text/javascript"></script>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
</head>
by this we done with the header codes.
4.
now we will add the comments box to each type of the posts you want to add it to
(Text,Quote,Link,Chat,Photo,Video,Audio)
first we will edit the next script code with your API Key and the fake xd_receiver url like this:
<fb:comments xid="{PostID}" url="{Permalink}"></fb:comments>
<script type="text/javascript">
FB.init("abcdefghijklmnopqrs-YOUR-API-KEY-tuvwxyz0123456789","http://iamthezohan.tumblr.com");
</script>
copy this code and replace:
"abcdefghijklmnopqrs-YOUR-API-KEY-tuvwxyz0123456789" with your API key.
"http://iamthezohan.tumblr.com" your blog url.
ok so after this all you need is just placing your code in each place where you want it to.
for example:
{block:Text}
<div class="regular">
{block:Title}<h3>{Title}</h3>{/block:Title}
{Body}
</div>
<div class="post-footer">
<fb:comments xid="{PostID}" url="{Permalink}"></fb:comments>
<script type="text/javascript">
FB.init("abcdefghijklmnopqrs-YOUR-API-KEY-tuvwxyz0123456789","http://iamthezohan.tumblr.com");
</script>
<br />
<span class="when">Posted at {12Hour}:{Minutes}{AmPm}</span>
{/block:Text}
{block:Photo}
<div class="photo">
{LinkOpenTag}<img src="{PhotoURL-400}" alt="{PhotoAlt}"/>{LinkCloseTag}
{block:Caption}<span class="caption">{Caption}</span>{/block:Caption}
</div>
<div class="post-footer">
<fb:comments xid="{PostID}" url="{Permalink}"></fb:comments>
<script type="text/javascript">
FB.init("abcdefghijklmnopqrs-YOUR-API-KEY-tuvwxyz0123456789","http://iamthezohan.tumblr.com");
</script>
<br />
<span class="when">Posted at {12Hour}:{Minutes}{AmPm}</span>
{/block:Photo}
you can add it where you want to before/after the {body} or before/after the <div class="post-footer">
5.
The last thing to do is to click on the 'SAVE & CLOSE' button, and enjoy! ![]()
+
you can also customize your comments box like in any other site by using the XFBML and CSS file:
http://wiki.developers.facebook.com/ind … ts_(XFBML)
Last edited by Gil Goldshlager (2009-11-07 16:14:56)
Offline
Gil Goldshlager wrote:
stardawn wrote:
it still puts the url and a lot of code in the profile feed...
1.
Try changing your:http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php
to:
http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php
2.
stardawn wrote:
Code:
<script type="text/javascript"> var my_api_key = '<?=$appapikey;?>'; var channel_path = "xd_receiver.html"; FB.init(my_api_key, channel_path); </script>why you are using your script like this?
your API key and your xd_receiver url are always the same, not?
if so, use it in a regular way like this:<script type="text/javascript">
FB.init("abcdefghijklmnopq-YOUR-API-KEY-rstuvwxyz123456789","/xd_receiver.htm");
</script>3.
Delete the 2 white spaces between:width="500px"> </fb:comments>
4.
Change:width="500px"
to
width="500"
i follow your intruction above but still doesn't work...you can test here http://apps.facebook.com/review_apps/de … at=product
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<fb:comments xid="<?=$cats;?>_<?=$gid;?>" numposts="5" simple="1" width="500"></fb:comments>
<script type="text/javascript">
FB.init("6caaf51d11f82184c8f2ef8038polihuxxx","/xd_receiver.html");
</script>Offline
There is a way to get all recent comments for an application with FQL i.e. without specifing an xid ?
Offline
Thank you Gil Goldshlager! Works perfect ony my http://iamthezohan.tumblr.com/
Offline
stardawn wrote:
i follow your intruction above but still doesn't work...you can test here http://apps.facebook.com/review_apps/de … at=product
I don't know how to use real applications so can't help you so much, try email to the admins.
but I do see that you are now using:
<script src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
and
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
Offline