David Clements
2009-Feb-23 18:41 UTC
[Facebooker-talk] Facebook Connect and Logging out of my app
I am trying to figure out how to successfully end a Facebook connect session in my application. User logs in with Facebook Connect Does stuff Hits my Logout button All looks good Hits refresh and they are logged back in. I assume this is because Facebook connect has set the cookie for me again. I looked at FB.Connect.Logout but this logs the user out of Facebook as well and that doesn''t seem right. I am hoping that I am missing something simple here. Any thoughts? Thanks, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090223/3113000a/attachment.html>
kevin lochner
2009-Feb-23 19:08 UTC
[Facebooker-talk] Facebook Connect and Logging out of my app
On Feb 23, 2009, at 1:41 PM, David Clements wrote:> I am trying to figure out how to successfully end a Facebook connect > session in my application. > > I looked at FB.Connect.Logout but this logs the user out of Facebook > as well and that doesn''t seem right. >That is right. FB Connect policy is that if the user is logged into facebook they are also logged into all authorized fb connect apps.
David Clements
2009-Feb-23 19:11 UTC
[Facebooker-talk] Facebook Connect and Logging out of my app
Interesting. So I guess I don''t allow users who are logged in via connect to logout? Or I send them to logout of Facebook? Or is there a way to kill the session? Dave On Mon, Feb 23, 2009 at 12:08 PM, kevin lochner <klochner at gmail.com> wrote:> > On Feb 23, 2009, at 1:41 PM, David Clements wrote: > > I am trying to figure out how to successfully end a Facebook connect >> session in my application. >> >> I looked at FB.Connect.Logout but this logs the user out of Facebook as >> well and that doesn''t seem right. >> >> > That is right. FB Connect policy is that if the user is logged into > facebook they are also logged into all authorized fb connect apps. > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090223/e17de1a6/attachment.html>
kevin lochner
2009-Feb-23 19:18 UTC
[Facebooker-talk] Facebook Connect and Logging out of my app
you log them out of facebook and your site with: FB.Connect.Logout_and_redirect(<%= your_logout_url %>); or just log them out of facebook without the redirect if you don''t store any information. On Feb 23, 2009, at 2:11 PM, David Clements wrote:> Interesting. > > So I guess I don''t allow users who are logged in via connect to > logout? > > Or I send them to logout of Facebook? > > Or is there a way to kill the session? > > Dave > > > On Mon, Feb 23, 2009 at 12:08 PM, kevin lochner <klochner at gmail.com> > wrote: > > On Feb 23, 2009, at 1:41 PM, David Clements wrote: > > I am trying to figure out how to successfully end a Facebook connect > session in my application. > > I looked at FB.Connect.Logout but this logs the user out of Facebook > as well and that doesn''t seem right. > > > That is right. FB Connect policy is that if the user is logged into > facebook they are also logged into all authorized fb connect apps. > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090223/31a37bbf/attachment.html>
David Clements
2009-Feb-23 19:19 UTC
[Facebooker-talk] Facebook Connect and Logging out of my app
Cool thanks.. Let me give that a try. Dave On Mon, Feb 23, 2009 at 12:18 PM, kevin lochner <klochner at gmail.com> wrote:> you log them out of facebook and your site with:FB.Connect.Logout_and_redirect(<%> your_logout_url %>); > > or just log them out of facebook without the redirect if you don''t store > any information. > > > > On Feb 23, 2009, at 2:11 PM, David Clements wrote: > > Interesting. > > So I guess I don''t allow users who are logged in via connect to logout? > > Or I send them to logout of Facebook? > > Or is there a way to kill the session? > > Dave > > > On Mon, Feb 23, 2009 at 12:08 PM, kevin lochner <klochner at gmail.com>wrote: > >> >> On Feb 23, 2009, at 1:41 PM, David Clements wrote: >> >> I am trying to figure out how to successfully end a Facebook connect >>> session in my application. >>> >>> I looked at FB.Connect.Logout but this logs the user out of Facebook as >>> well and that doesn''t seem right. >>> >>> >> That is right. FB Connect policy is that if the user is logged into >> facebook they are also logged into all authorized fb connect apps. >> >> >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20090223/c5127e6a/attachment.html>
David Clements
2009-Feb-24 00:04 UTC
[Facebooker-talk] Facebook Connect and Logging out of my app
This worked great.
I ended up calling this javascript method on my logout button
function logoutWithFacebook(url){
logoutURL = url;
FB.Connect.ifUserConnected(logoutFacebook, logoutNormal);
};
function logoutFacebook(){
FB.Connect.logoutAndRedirect(logoutURL);
};
function logoutNormal(){
window.location.href = logoutURL;
};
Dave
On Mon, Feb 23, 2009 at 12:19 PM, David Clements <digidigo at gmail.com>
wrote:
> Cool thanks.. Let me give that a try.
>
> Dave
>
>
> On Mon, Feb 23, 2009 at 12:18 PM, kevin lochner <klochner at
gmail.com>wrote:
>
>> you log them out of facebook and your site
with:FB.Connect.Logout_and_redirect(<%>> your_logout_url %>);
>>
>> or just log them out of facebook without the redirect if you
don''t store
>> any information.
>>
>>
>>
>> On Feb 23, 2009, at 2:11 PM, David Clements wrote:
>>
>> Interesting.
>>
>> So I guess I don''t allow users who are logged in via connect
to logout?
>>
>> Or I send them to logout of Facebook?
>>
>> Or is there a way to kill the session?
>>
>> Dave
>>
>>
>> On Mon, Feb 23, 2009 at 12:08 PM, kevin lochner <klochner at
gmail.com>wrote:
>>
>>>
>>> On Feb 23, 2009, at 1:41 PM, David Clements wrote:
>>>
>>> I am trying to figure out how to successfully end a Facebook
connect
>>>> session in my application.
>>>>
>>>> I looked at FB.Connect.Logout but this logs the user out of
Facebook as
>>>> well and that doesn''t seem right.
>>>>
>>>>
>>> That is right. FB Connect policy is that if the user is logged
into
>>> facebook they are also logged into all authorized fb connect apps.
>>>
>>>
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/facebooker-talk/attachments/20090223/7d9b1ea0/attachment.html>