daogr / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

Logout is not working for Mobile #326

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Login to Facebook using the API.
2. Logout using FacebookMobile.logout
3. Login again using FacebookMobile.login

What is the expected output? What do you see instead?
I expect the Login dialog to appear after I logout.

What version of the product are you using? On what operating system?
Graph API 1.6.1

Please provide any additional information below.
I provide the solution here so that you don't have to read a lot.
In the FacebookMobile.logout method:

1) Chage the "http://m.facebook.com/logout.php" URL to 
"https://m.facebook.com/logout.php" (secure logout version)
2) After params.next = appOrigin; add the following line:

params.access_token = session.accessToken;

This is it!
I created the issue not only to provide the solution but also to bed for the 
API developers to fix it whenever they can so that we don't need to use the 
source version but the SWC files directly.

Original issue reported on code.google.com by juank...@gmail.com on 13 Jul 2011 at 4:18

GoogleCodeExporter commented 8 years ago

Original comment by edwar...@gmail.com on 11 Oct 2011 at 10:57