<br><br><div class="gmail_quote">On Thu, Oct 4, 2012 at 10:17 AM, sergio_101 <span dir="ltr">&lt;<a href="mailto:sergio.rrd@gmail.com" target="_blank">sergio.rrd@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">&gt; What parameters are available from facebook?  is there a way to add a custom<br>
&gt; token/value/etc to post you get back from facebook?  If so, you can use that<br>
&gt; to look up the correct user session.  Or is there some existing<br>
&gt; facebook-user value you can use for a lookup?<br>
<br>
</div>oh! this might be the way to do it.. i would imagine you could add<br>
some params on the end of the url..<br>
<br>
i also get a userId back on a successful authorization..<br>
<br>
maybe i can set the userId on the session..<br>
<br>
then, i could do something like:<br>
<br>
SBSession allInstances select [ :session | session userId = &#39;THE_CORRECT_ID&#39; ]<br><br></blockquote><div><br>well allInstances can be unreliable -- especially if the user is trying to login many times, and in some cases very slow.  maybe something like:<br>
SBSession pendingUsers at: fbUserId put: session.<br><br>then later on:<br><br>self session: (SBSession pendingUsers at: fbUserId). <br><br>But it sounds like your on the right track<br><br></div></div>