<div dir="ltr">I think this is because you have your callback url as the post add url.&nbsp; If you make the post add url a canvas page you won&#39;t see this behavior.<br><br>Dave<br><br><br><div class="gmail_quote">On Fri, Aug 15, 2008 at 9:28 AM, Richard Jordan <span dir="ltr">&lt;<a href="mailto:jordanr@cs.washington.edu">jordanr@cs.washington.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I use a before_filter thrown on a facebook auth_token. &nbsp;Here is the code. ======================================================<br>

 &nbsp;# when a user authenticates to facebook this before filter redirects<br>
 &nbsp;# the user back to a fbml canvas page instead of to html on our server.<br>
 &nbsp;before_filter :redirect_if_auth_key<br>
<br>
 &nbsp;# keeps the user inside facebook<br>
 &nbsp;def redirect_if_auth_key<br>
 &nbsp; &nbsp;if( params[:auth_token])<br>
 &nbsp; &nbsp; &nbsp;redirect_to( url_for(:action =&gt; &quot;whateveryouwant&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:canvas =&gt; true, :only_path =&gt; false))<br>
 &nbsp; &nbsp;end<br>
 &nbsp;end<br>
======================================================<br>
<br>
Try the filter in your app/controller/application.rb.<br><font color="#888888">
<br>
Richard</font><div><div></div><div class="Wj3C7c"><br>
<br>
On Thu, 14 Aug 2008, Allen Walker wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If someone isn&#39;t logged in this filter works - it takes them to the facebook login page. However after logging in it&#39;s going to my root application URL outside of facebook. How do I set the proper redirect URL after a user logs into facebook?<br>

<br>
thanks<br>
_______________________________________________<br>
Facebooker-talk mailing list<br>
<a href="mailto:Facebooker-talk@rubyforge.org" target="_blank">Facebooker-talk@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/facebooker-talk" target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
<br>
<br>
</blockquote>
_______________________________________________<br>
Facebooker-talk mailing list<br>
<a href="mailto:Facebooker-talk@rubyforge.org" target="_blank">Facebooker-talk@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/facebooker-talk" target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
</div></div></blockquote></div><br></div>