[Facebooker-talk] link_to_remote with 401 error code

shahzad bhatti bhatti_shahzad at yahoo.com
Sat Jan 3 16:15:46 EST 2009


I am trying to use link_to_remote to send ajax request to my server, where my code looks like: 

<%= link_to_remote( image_tag(“image”),
                    :update => div_id,
                    :url => my_url(post, :canvas => false),
                    :method => :get,
                    :html => {:class => “button”},
                    :before => ”$(‘spinner’).show()”,
                    :complete => ”$(‘spinner’).hide()” 
                        ) %>




	However,
since canvas is false, facebook doesn’t send authorization the
facebooker filters rejects the request with 401 error. I don’t want to
skip ensure_authenticated_to_facebook filter, but how do I fix this?


	Thanks.
-Shahzad


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090103/59a15c50/attachment.html>


More information about the Facebooker-talk mailing list