Allen Walker
2008-Aug-12 21:36 UTC
[Facebooker-talk] built in fb:comments - can''t get it to work
For a week I''ve been screwing with this. It seems really simple yet I can''t get it to work. So I have to think it has something to do with rails and rendering pages. I have: <%= fb_comments("Activity_#{@activity.id}", true, false, 20, :showform => true, :callbackurl => activity_url(:id=>@activity.id)) %> it outputs: <fb:comments callbackurl="http://apps.new.facebook.com/myapp/activities/31" candelete="false" canpost="true" numposts="20" showform="true" xid="Activity_31"></fb:comments> The wall shows up but when I post it goes back to the page and shows no comments. This CANNOT be that complicated. I realize I can write my own comment wall but I don''t understand why the built in facebook fbml comments won''t work. Does anyone have fb:comments working? Thanks for any help.
David Clements
2008-Aug-12 21:42 UTC
[Facebooker-talk] built in fb:comments - can''t get it to work
The tutorial application has this working. http://apps.new.facebook.com/facebooker_tutorial/fbml/comments#comments_comments_for_comment_lesson There is one comment from a user indicating that they had to turn on forgery protection to get it to work. I am not using the callback url though. Dave On Tue, Aug 12, 2008 at 3:36 PM, Allen Walker <auswalk at gmail.com> wrote:> For a week I''ve been screwing with this. It seems really simple yet I can''t > get it to work. So I have to think it has something to do with rails and > rendering pages. I have: > > <%= fb_comments("Activity_#{@activity.id}", true, false, 20, :showform => > true, > :callbackurl => activity_url(:id=>@activity.id)) %> > > it outputs: > > <fb:comments callbackurl="http://apps.new.facebook.com/myapp/activities/31" > candelete="false" canpost="true" numposts="20" showform="true" > xid="Activity_31"></fb:comments> > > > > The wall shows up but when I post it goes back to the page and shows no > comments. > > This CANNOT be that complicated. I realize I can write my own comment wall > but I don''t understand why the built in facebook fbml comments won''t work. > Does anyone have fb:comments working? > > Thanks for any help. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080812/b0b6deed/attachment.html>
Mike Mangino
2008-Aug-12 22:26 UTC
[Facebooker-talk] built in fb:comments - can''t get it to work
What does your route look like? does a post to your callback url render a page with the comments tag on it? Mike On Aug 12, 2008, at 5:36 PM, Allen Walker wrote:> For a week I''ve been screwing with this. It seems really simple yet > I can''t get it to work. So I have to think it has something to do > with rails and rendering pages. I have: > > <%= fb_comments("Activity_#{@activity.id}", true, false, > 20, :showform => true, > :callbackurl => activity_url(:id=>@activity.id)) %> > > it outputs: > > <fb:comments callbackurl="http://apps.new.facebook.com/myapp/activities/31 > " candelete="false" canpost="true" numposts="20" showform="true" > xid="Activity_31"></fb:comments> > > > > The wall shows up but when I post it goes back to the page and shows > no comments. > > This CANNOT be that complicated. I realize I can write my own > comment wall but I don''t understand why the built in facebook fbml > comments won''t work. Does anyone have fb:comments working? > > Thanks for any help. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Vidal Graupera
2008-Aug-12 22:42 UTC
[Facebooker-talk] built in fb:comments - can''t get it to work
I could not get it to work with the callback url. I had to remove that. Either that feature doesn''t work, or I didn''t know how to return the right thing. Vidal. On Aug 12, 2008, at 2:36 PM, Allen Walker wrote:> For a week I''ve been screwing with this. It seems really simple yet I > can''t get it to work. So I have to think it has something to do with > rails and rendering pages. I have: > > <%= fb_comments("Activity_#{@activity.id}", true, false, 20, :showform > => true, > :callbackurl => activity_url(:id=>@activity.id)) %> > > it outputs: > > <fb:comments callbackurl="http://apps.new.facebook.com/myapp/activities/31 > " > candelete="false" canpost="true" numposts="20" showform="true" > xid="Activity_31"></fb:comments> > > > > The wall shows up but when I post it goes back to the page and shows > no > comments. > > This CANNOT be that complicated. I realize I can write my own comment > wall but I don''t understand why the built in facebook fbml comments > won''t work. Does anyone have fb:comments working? > > Thanks for any help. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk================ Vidal Graupera vidalg at a2z.com 650-331-2714 130 Lytton Ave., Suite 300 Palo Alto, CA 94301 UnSpun by Amazon: Community Opinions ... Ranked! http://unspun.amazon.com
David Clements
2008-Aug-12 22:48 UTC
[Facebooker-talk] built in fb:comments - can''t get it to work
What is the whole point of the callback url anyway? I don''t understand its use: optional callbackurl string<http://wiki.developers.facebook.com/index.php/String> The URL to refetch this configuration. *(Default value is the current page.)* Dave On Tue, Aug 12, 2008 at 4:42 PM, Vidal Graupera <vidalg at a2z.com> wrote:> I could not get it to work with the callback url. I had to remove that. > Either that feature doesn''t work, or I didn''t know how to return the right > thing. > > Vidal. > > On Aug 12, 2008, at 2:36 PM, Allen Walker wrote: > > For a week I''ve been screwing with this. It seems really simple yet I >> can''t get it to work. So I have to think it has something to do with >> rails and rendering pages. I have: >> >> <%= fb_comments("Activity_#{@activity.id}", true, false, 20, :showform >> => true, >> :callbackurl => activity_url(:id=>@activity.id)) %> >> >> it outputs: >> >> <fb:comments callbackurl=" >> http://apps.new.facebook.com/myapp/activities/31" >> candelete="false" canpost="true" numposts="20" showform="true" >> xid="Activity_31"></fb:comments> >> >> >> >> The wall shows up but when I post it goes back to the page and shows no >> comments. >> >> This CANNOT be that complicated. I realize I can write my own comment >> wall but I don''t understand why the built in facebook fbml comments >> won''t work. Does anyone have fb:comments working? >> >> Thanks for any help. >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > ================> > Vidal Graupera > vidalg at a2z.com > 650-331-2714 > 130 Lytton Ave., Suite 300 > Palo Alto, CA 94301 > > UnSpun by Amazon: Community Opinions ... Ranked! > http://unspun.amazon.com > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20080812/9705a502/attachment.html>
Mike Mangino
2008-Aug-12 22:57 UTC
[Facebooker-talk] built in fb:comments - can''t get it to work
When Facebook renders certain pages, like the new comment form, it fetches the callbackurl and uses the configuration data from the fb:comments tag on that page. If you had a comment wall on an expensive page you could use the callback url to render just the fb:comments tag. For Rails, we used to need this because Facebook always fetched the callback as a POST. If you tried to use an fb:comments tag on your index, Facebook would try to grab the configuration info from your create method when a user was posting a comment. Mike On Aug 12, 2008, at 6:48 PM, David Clements wrote:> What is the whole point of the callback url anyway? I don''t > understand its use: > > optional > callbackurl > string > The URL to refetch this configuration. (Default value is the current > page.) > > > Dave > > > > On Tue, Aug 12, 2008 at 4:42 PM, Vidal Graupera <vidalg at a2z.com> > wrote: > I could not get it to work with the callback url. I had to remove > that. Either that feature doesn''t work, or I didn''t know how to > return the right thing. > > Vidal. > > > On Aug 12, 2008, at 2:36 PM, Allen Walker wrote: > > For a week I''ve been screwing with this. It seems really simple yet I > can''t get it to work. So I have to think it has something to do with > rails and rendering pages. I have: > > <%= fb_comments("Activity_#{@activity.id}", true, false, 20, :showform > => true, > :callbackurl => activity_url(:id=>@activity.id)) %> > > it outputs: > > <fb:comments callbackurl="http://apps.new.facebook.com/myapp/activities/31 > " > candelete="false" canpost="true" numposts="20" showform="true" > xid="Activity_31"></fb:comments> > > > > The wall shows up but when I post it goes back to the page and shows > no > comments. > > This CANNOT be that complicated. I realize I can write my own comment > wall but I don''t understand why the built in facebook fbml comments > won''t work. Does anyone have fb:comments working? > > Thanks for any help. > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > ================> > Vidal Graupera > vidalg at a2z.com > 650-331-2714 > 130 Lytton Ave., Suite 300 > Palo Alto, CA 94301 > > UnSpun by Amazon: Community Opinions ... Ranked! > http://unspun.amazon.com > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Allen Walker
2008-Aug-12 23:14 UTC
[Facebooker-talk] built in fb:comments - can''t get it to work
Standard route in the routing table. I even took out the callbackurl , still doesnt work. I have given up and wrote my own comments storage using fb_wall and fb_wallpost. I got that to work. Mike Mangino wrote:> What does your route look like? does a post to your callback url > render a page with the comments tag on it? > > Mike > > On Aug 12, 2008, at 5:36 PM, Allen Walker wrote: > >> For a week I''ve been screwing with this. It seems really simple yet I >> can''t get it to work. So I have to think it has something to do with >> rails and rendering pages. I have: >> >> <%= fb_comments("Activity_#{@activity.id}", true, false, 20, >> :showform => true, >> :callbackurl => activity_url(:id=>@activity.id)) %> >> >> it outputs: >> >> <fb:comments >> callbackurl="http://apps.new.facebook.com/myapp/activities/31" >> candelete="false" canpost="true" numposts="20" showform="true" >> xid="Activity_31"></fb:comments> >> >> >> >> The wall shows up but when I post it goes back to the page and shows >> no comments. >> >> This CANNOT be that complicated. I realize I can write my own comment >> wall but I don''t understand why the built in facebook fbml comments >> won''t work. Does anyone have fb:comments working? >> >> Thanks for any help. >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > >