Generic-user-small Allen Walker 19 posts

Ok this is odd: have the following on a page:

<%= fb_comments(“activity_#{@activity.id}”, true, false, 20, :showform => true) %>

the url that this form is on is:

http://apps.new.facebook.com/myapp/activities/8

When I enter a comment, it just comes back to the same page and says there are no comments. The new URL is slightly different though:

http://apps.new.facebook.com/myapp/activities/8?fbapp_ec=754

I haven’t done anything to the routing table. The generated FBML code:

<fb:comments showform="true" numposts="20" xid="activity_8" canpost="true" candelete="false"></fb:comments>
 
Generic-user-small Allen Walker 19 posts

Anyone here using fb:comments in their pages?

 
Head_small Mike Mangino 148 posts

I’ve used them. Are you specifying a callback url on the fb_comments tag? Facebook will try to post to http://apps.new.facebook.com/myapp/activities/8 which might be giving an error.

Mike

 
Generic-user-small Allen Walker 19 posts

I have tried both specifying a callback and not, neither works. Apparently when the user clicks post it is not posting to the comments tag properly. Anyway here’s my code:

<%=fb_comments(“comments_for_comment_lesson”, true, true, 20,:showform => true, :title => “Comment Lesson Comments”) %>

Straight from the facebooker_tutorial just to try to get it to work.

 
Head_small Mike Mangino 148 posts

I think we eventually got this worked out on the Facebooker mailing list. I’ll post the solution here too in case anyone else runs into this.

When using fb:comments and fb:board, the callback url you specify must support both GET and POST requests. If you are using RESTFUL rails, you may need to add a route specifically for the callback as mentioned on page 126 of the most recent beta.

It took me a long time to figure this out. It’s a really subtle and tricky bug.

5 posts, 2 voices