[Facebooker-talk] link_to_remote with 401 error code
Tres Wong-Godfrey
tres.wong-godfrey at saniq.com
Sat Jan 3 17:26:16 EST 2009
link_to_remote doesn't work with Facebooker. You can use
remote_form_for and some CSS magic to get the same outcome.
On Jan 3, 2009, at 1:15 PM, shahzad bhatti wrote:
> 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
>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
More information about the Facebooker-talk
mailing list