[Facebooker-talk] fb_comments and fb_board not working
Allen Walker
auswalk at gmail.com
Thu Sep 4 18:26:44 EDT 2008
That's what I figured and that makes perfect sense. Thanks for clearing
that up. you might want to put this in your book btw.
Best regards
Mike Mangino wrote:
> Actually, you can
>
> map.fancy_name 'fancy_path/:id' ....
>
> Your problems were caused by Facebook sending a POST request to a URL
> that doesn't support posts. When they try to do that, your application
> returns an error and they cancel the posting. By creating a route by
> hand, you are decoupling it from the HTTP method used.
>
> Mike
>
> On Sep 4, 2008, at 6:16 PM, Allen Walker wrote:
>
>> Also even though this works, i have urls that are dynamic , i.e.
>> /articles/8 for example and want comments on those pages. That
>> doesn't work. And I can't hardcode a route for a dynamic route that I
>> know of really.
>>
>> Mike Mangino wrote:
>>> Try creating a route just for that page, i.e.
>>>
>>> route.discussion_board 'discussion', :controller=>"home",
>>> :action=>"index"
>>>
>>> Then, go to http://apps.new.facebook.com/myapp/discussion and see if
>>> that works.
>>>
>>> I struggled like mad to get this to work the first time too. I wish
>>> I could remember the eventual fix.
>>>
>>> Mike
>>
>> _______________________________________________
>> Facebooker-talk mailing list
>> Facebooker-talk at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/facebooker-talk
>
> --
> Mike Mangino
> http://www.elevatedrails.com
>
>
>
>
More information about the Facebooker-talk
mailing list