<div dir="ltr">This issue I was having was that I had a request with both the request token and all the fb_sig params including a valid session key.&nbsp;&nbsp;&nbsp;&nbsp; I think this happens after an install of an app with the post ad url being a canvas page.<br>
<br>So perhaps my fix wasn&#39;t deep enough.&nbsp; We could make it so that secure_with_params doesn&#39;t throw an exception if there is an auth token present?&nbsp;&nbsp; <br><br><br>Dave<br><br><div class="gmail_quote">On Sat, Aug 9, 2008 at 1:12 AM, Jonathan Otto <span dir="ltr">&lt;<a href="mailto:jonathan.otto@gmail.com">jonathan.otto@gmail.com</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;">The order you have listed here makes sense to me since<br>
secure_with_token checks for the auth_token parameter before doing<br>
anything.<br>
<br>
The current implementation is now to do secure_with_token! last.<br>
<div><div></div><div class="Wj3C7c"><br>
On Tue, Jun 3, 2008 at 4:18 PM, David Clements &lt;<a href="mailto:digidigo@gmail.com">digidigo@gmail.com</a>&gt; wrote:<br>
&gt; Hey Guys,<br>
&gt;<br>
&gt; I am wondering if I am missing something here. &nbsp;I am noticing that after a<br>
&gt; user installs my app I get a request that not only contains an auth_key but<br>
&gt; also contains a valid session key.<br>
&gt;<br>
&gt; Occasionally I am seeing that Facebook server is occasionally sending a<br>
&gt; connection reset during the auth key authentication method, this caused me<br>
&gt; to notice that secure_with_token is given precedence in the code:<br>
&gt;<br>
&gt; &nbsp;def set_facebook_session<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; returning session_set = session_already_secured? ||<br>
&gt; secure_with_token! || secure_with_facebook_params! &nbsp;do<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if session_set<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; capture_facebook_friends_if_available!<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Session.current = facebook_session<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; end<br>
&gt; &nbsp; &nbsp; &nbsp; end<br>
&gt;<br>
&gt;<br>
&gt; This seems wrong to me since secure with token makes &nbsp;a round trip to<br>
&gt; Facebook and secure_with_facebook_params! does not.<br>
&gt;<br>
&gt; Any thoughts or insights?<br>
&gt;<br>
&gt; Dave<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Facebooker-talk mailing list<br>
&gt; <a href="mailto:Facebooker-talk@rubyforge.org">Facebooker-talk@rubyforge.org</a><br>
&gt; <a href="http://rubyforge.org/mailman/listinfo/facebooker-talk" target="_blank">http://rubyforge.org/mailman/listinfo/facebooker-talk</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br></div>