<br><br><div class="gmail_quote">On Thu, Oct 4, 2012 at 10:17 AM, sergio_101 <span dir="ltr"><<a href="mailto:sergio.rrd@gmail.com" target="_blank">sergio.rrd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> What parameters are available from facebook? is there a way to add a custom<br>
> token/value/etc to post you get back from facebook? If so, you can use that<br>
> to look up the correct user session. Or is there some existing<br>
> 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 = 'THE_CORRECT_ID' ]<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>