Talk:Fb:comments

From Facebook Developer Wiki

Jump to: navigation, search

Contents

[edit] Embedded in Wall tags

For me this is completely broken inside Fb:wallposts and even Fb:wall tags. The Captcha never loads and I get "HTTP Error: Transport error(#302) while retrieving data from endpoint '/ajax/wallpost_ajax.php': Unknown HTTP error #302." Removing them from the wall tags fixes them, so for now I have to start and end wall tags in my for loop. 527235316 15:48, 11 June 2009 (PDT)

Hi Jordan, the commments tag isn't meant to be used in fb:wall; they're independent entities. You should use one or the other, as fb:comments will stand alone. I'll clarify this in the docs. Pete (563683308 12:23, 12 June 2009 (PDT))

[edit] Beware of xid duplicates

The captcha check also breaks if you accidentally use two comment tags with the same xid. I got the same Transport Error above if I had more than one fb:comment tags with the same xid. 527235316 02:50, 16 June 2009 (PDT)

[edit] Captcha

This is irritating for tracking comments or sending custom notifications: the post data is exactly the same to the callback whether it's the post that results in the captcha coming up, or the post with the captcha field that verifies the post and actually commits it. There's no way for me to determine whether the callback is for either of those, and I just have to send out a notification twice when someone with an unverified account posts to a wall in my app. - 193700405 09:34, 5 December 2008 (PST)

[edit] Functionallity Change

On Nov.5,2008 there seemed to be isolated problems with this tag. Posting worked but the resulting page had html errors. On Nov.6,2008, this tag is now fully ajax. I havn't done any testing to see how this has affected the tag's properties. Also, I have no idea how long this new ajaxifcation will stay deployed.

It seems like they've also turned on Captcha for fb:comments. The ability to turn CAPTCHA off would be appreciated.

The captchas only appear to users whose accounts haven't been verified by Facebook to keep the amount of spam on boards down. Why do you want to disable it? -- Pete (563683308 15:03, 11 November 2008 (PST))
We're not worried about spam since the comments are only shown to friends. But main reason is that the CAPTCHA breaks our wall - users can't post if they haven't been verified. But maybe that's the point :). I assume this is specific to our implementation, but I'd like to see the documentation updated so we know what needs to be changed to work with AJAX/captcha.

[edit] Feature Request

Allow us to set the link where clicking on the facebook users name / picture goes. In our application each player has their own portfolio page, and since most of the comments revolve around what's in their portfolio - a person's natural inclination is to click on their name or picture & expect to be taken to their portfolio page (from that page we link back to the persons facebook profile).

DITTO -11/29/07

Also, when a user clicks "view all" allow us to supply a common header up top so that it confines to the look & feel of our application.

Allow in Profile. Please allow this Tag to work in the profile. It would be great!

Exclude_ids I think it would be a good idea for the developer to be able to exclude certain users from being able to write a comment, such as a user who used profound or offensive language and the developer feels that they are hurting the growth of the application.

-- Additional by Matt Hamer, 8/Sept/2008. Some moderation of the Wall by the app developer should be allowed. Developers should be able to delete posts. As the Wall is only allowed on canvas page - which is definately a good idea, by the way - it could be subjected to spam etc.

You can delete posts -- set the candelete option to true. -- Pete (User:563683308)

Developer/Moderator posts highlighted by Matt Hamer, 8/Sept/2008

I use the wall as a forum for like-minded app users, which works superbly at the moment. It'd be nice to have moderator/developer posts in an alternate colour though. I like to show that I'm actively involved in developing and running my app.

This is a good idea; I'll mention it to the engineering team. Pete (User:563683308)

Coincide Style and Allow linking with feeds -- This would be great to coincide with the way comments look on the rest of Facebook.. or at least the ability to opt into that style using a special attribute. As for feeds, when posting a feed we should be able to specify a comment thread from our application (so that comments automatically show up on the user's feed if they're about the same thing). --604758172 18:00, 7 January 2009 (PST)


comment_id I've searched online and there doesn't seem to be an easy way to get the comment_id for the comment that is just posed? Wouldn't it be easy to include that in the comment object for add_onComment?

Default publish_checkbox is it possible to default the "post comment to my profile" box unchecked? For the pages which are more private or have high traffic, it seems to make sense to default unchecked. The DOM id for the checkbox is hard to use. Thanks!!

These are two good suggestions, Jason. I mentioned them to the engineer who built the Comments Box and he'll try to integrate them soon. Thanks, Pete (563683308 15:29, 10 July 2009 (PDT))

=> Along the same lines: Would it be possible to make the "Log out" link in the XFBML version of <fb:comments> optional? I have an FBML application that uses the XFBML version of <fb:comments> in an iframe because the FBML version of <fb:comments> does not auto-refresh when users make new posts. The XFBML version, however, shows the "Log out" link, which means that I now have an application that I launch from inside my Facebook account and inside that application I can log out of the application and out of Facebook - that looks a little odd and I'd rather not have users accidentally hit the "Log out" button while running the application. Thanks!

candelete It would be nice if this parameter took fbid's instead of a bool, with the creator of the comment always being allowed to delete. Some times comments are posted on some one else s stuff and they should have the option to delete the unwanted comment.- 7/29/2009

[edit] Feature Idea: <fb:thread>

Has anyone figured out any tags/ways to add message threads to their application?

I'm looking for something like the facebook messaging system that we can embedd in our app. I know facebook released the fb:comment and fb:board tags but the top level view of the UI(that only shows the first x # of posts) is a lot more spread out than we'd like and don't think they've released any tags specific to threads like they've implemented with their messaging system. It would also be great if they broke out the text box for posting into a separate tag we could position on a page as we'd like

[edit] Feature Idea: Posting TextBox Tag

Any chance we can get a tag broken out for the text box used to post to a comment board?(The text box could be associated to it's comment board by the xid of the comment board) This would allow us to choose where on the page we put the input box for a comment board. It would also allow us to include multiple fb:comments and inputs on the same page.

[edit] Great, but.

This is great but the post text-area is on a separate page, not in-line, which would be a nice option. And the box header background color is off: should be #D8DFEA but is darker #CFD7E4, even sub-header is a darker grey than it should be. Oh, and the time (zone?) is incorrect when viewing on the canvas...and "message - delete" should be capitalized. This tag needs attention and it would be perfect!

To post comments inline, set showform to true. Pete (User:563683308)

This is an awesome tag, however, may I suggest a couple of "meta-tags"? Like <fb:if-has-comments> and <fb:comment-count>, so when we link towards the comment-page, we can actually show how many comments there are for that xid: "<fb:if-has-comments xid=bla>Comments (<fb:comment-count xid=bla />)<fb:else>Be the first to comment!</fb:if-has-comments>" --709269047 14:09, 18 August 2007 (PDT)

"If you return true for the action requested in the fb:comments tag, you can assume the action was performed."
I'd love to see a <fb:comments-count> tag. LOVE. Vindexus 17:08, 27 September 2007 (PDT)

This is rather vague, some details on what this means would be rather helpful. -- Douglas Thrift 2007-08-25T01:56:30Z

Also would be nice to know if this comments section contains Paging built in? -- Ian Warner

  • After 10 posts a "See all" link shows at the bottom. Dunno if that page is paginated but I'm sure its just like your profile's wall. --Tony 14:23, 21 June 2008 (PDT)

[edit] Using with Ajax

If you are trying to include one of these walls in an area of the page that is returned from an Ajax call, note it will not be correctly styled. It appears that the kit/wall.css is only included on page load if there is a fb:comment found on the existing page. A work around is to include a dummy wall in a div that is display:none'd in order for the CSS to get loaded.

Perhaps they'll give us the ability to trigger the css load on the parent page or something? --543396022 16:32, 29 September 2007 (PDT)

[edit] Strange Behaviour

Can not display comment in the profile box

We are trying to use this in the profile box, but it just does not show. Anyone knows why and how to fix this?

Thanks!

                         <fb:comments xid="$some_xid" canpost="false" candelete="false" numposts="3">
                           <fb:title>Comments</fb:title>
                         </fb:comments>
fb:comments only works on canvas page, and not in profile boxes. Instead, you could use FQL to access the comments data and create your own comment form in profile boxes. --549665779 20:20, 17 December 2008 (PST)

[edit] Show network

What about adding an option in the tag to display a user's network next to their name. I'd find that helpful. --Tony 14:24, 21 June 2008 (PDT)

[edit] Show Last Comment

Is there any easy way to display the last comment left, either on a canvas page or in profileFBML?

[edit] Bug when rendered from ajax

There is also a bug where you can't create fb:comments from an ajax call. http://bugs.developers.facebook.com/show_bug.cgi?id=1154

[edit] Clear behavior

Unless I'm missing something, this tag is pretty difficult to integrate into a CSS layout since it has elements that clear: both. The "clearfix" hack thing is of particular difficulty to work with. A parameter to control the behavior of this would be a nice addition. Really amazing tag, though; I was idealizing something like this! -216900466 19:36, 10 January 2008 (PST)

[edit] Feature ideas: profile URL, Wall to Wall

Couple of ideas:

  1. Make it possible to choose where the users' names and pictures will link to. So, perhaps a parameter, profileurl="mycanvasurl/user.php?id=", where the ID would be stuck on the end. I'd like to keep users within my own app when they click users' names.
  2. Make it possible to have a "wall to wall" callback URL and banter xid. Each user of my application has his or her own in-app wall, so there will probably be wall to wall behavior going on. It'd be neat if I could make a callback URL that would display a wall to wall output.

-216900466 13:17, 11 January 2008 (PST)

[edit] Report comments

Is this ever going to have the option of reporting posts similar to <fb:board>? - 193700405 10:06, 28 March 2008 (PDT)

[edit] See all broken?

"See all posts" was working earlier today, but now it's just giving me "I've got nothing for you". Anyone else having the same problem. - 193700405 06:03, 20 June 2008 (PDT)

[edit] Bug in notifications

If you don't ave permission to see someone and they post on the wall the notification just reads " wrote on ______'s Wall. 6:09pm" The name is just left blank. --Tony 15:30, 22 June 2008 (PDT)


[edit] Programmatic Posting

It would be nice to be able to post to a wall programmatically via the API.

When the new profile design launches later this month, you can programmatically post to the user's profile with the Publisher. It still requires the user to initiate the action though.

[edit] "Post comment to my Facebook profile" does not work properly when used from tabs

Hi,

I am showing comments to some wallposts generated by my app on the application's tab in the user's profile. When adding a comment *and* checking "Post comment to my Facebook profile", then the link posted along with the comment on the wall will just be a direct link to http://apps.facebook.com/myapp/tab.php . However, this link is broken, as there is no information in it identifying the user at which tab's page the comment was posted. Thus, when a visitor of the wall clicks on this link, she will not get to the user's profile on which this comment was posted.

Even if the user_id would be included in the link such that the POST var "fb_sig_profile_user" is available in the php file behind the tab, it will be hard for the visitor to find the corresponding comment if there is a longer list of commented items on the tab.

It is also not possible to suppress the "Post comment to my Facebook profile" checkbox with 'publish_feed="false"'.

I would be grateful about any hint how to solve this problem. Thanks!

/ben

PS: I think the simplest solution would be disable posting to the wall if publish_feed is set to false.

[edit] Feature request

When a poster post a message and checks the "Post comment to my Facebook profile" the link in this comment on the persons Wall redirects people to the canvas page of an app.

In my app each profile tab instance of the fb:comment tag has it's own xid and therefor redirecting to the canvas page won't show the comment that was clicked on (on the Wall). So i'd like to be able to set the url (on the wall posts) where the fb:comment with the right xid can be found.

Please file a feature request in bugzilla. Pete (563683308 12:17, 8 September 2009 (PDT))

[edit] FB Comments on FB ConnectSite

Hi there, I have succesfully got an FB comments box installed and working on my FB Connect site.

http://www.ifandesign.0fees.net/iblog

I'm wandering if it is possible to do 2 things?

Q#1 I have now craeted a feed template bundle and have the ID code, can you explain how to connect these 2 together as I'd like the posts that come from the comment feed to appear as a feed template. Is this possible?

Q#2 The FB side of things work fine, however I cant find find any documentation regarding if someone wants to just do a normal name and email sign in to make a post. Currently when I try this I just get a red highlight appear above the name.

I went to the demo FB Comment Connect site and it did the same thing there too

Any help most appreciated (E-mail: ifanbespokedesign@gmail.com)

Kind Regards Tony

[edit] Database Down Error

Hi there - anyone else getting this error? Database Down Sorry, a temporary error has occurred. Please try again.

I have FB comments working fine on 1 fan page - created a new page today and am getting this "Databse down error" anyone know if its just related to Facebooks system wide problems at the moment?

Regards

reference