[Facebooker-talk] Facebook Connect and Logging out of my app

David Clements digidigo at gmail.com
Mon Feb 23 19:04:46 EST 2009


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>


More information about the Facebooker-talk mailing list