basantsahoo / facebook-actionscript-api

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

Facebook.logout does not work / Web Application (Flex-java) #312

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Login successfully
2. Logout not success, i am still logged in

What is the expected output? What do you see instead?

the user should be logged out

What version of the product are you using? On what operating system?
1.6.1, Windows

Please provide any additional information below.
I use actually *.swc but to debug i used source file and in FacebookJSBridge 
FB.logout will be not executed. I add an alert before and after FB.logout, the 
alert before i have seen but after dont.

Original issue reported on code.google.com by gulsun.falke@gmail.com on 2 Jun 2011 at 8:51

GoogleCodeExporter commented 8 years ago
What browser are you using? Can you provide some code?

Original comment by edwar...@gmail.com on 2 Jun 2011 at 3:47

GoogleCodeExporter commented 8 years ago
Firefox, Internetexpolorer, Chrome.
I have also added in my html javascript and in lib GraphAPI_Web_1_6_1.swc.  

<script type="text/javascript" 
src="http://connect.facebook.net/en_US/all.js"</script>

        // it works
    protected function initApp():void {
                Facebook.init("210054235684310", loginHandler);
            }

       // it works
       protected function login():void {
    Facebook.login(loginHandler,{perms:"publish_stream,read_stream"});
      }

       protected function loginHandler(success:Object, fail:Object):void {
                if(success){
                    Alert.show("success");
                }
                else{
                    Alert.show("Facebook login failed : " + fail);
                }
       }

             // it does not work
             private function logout():void {
                Facebook.logout(onLogout);

             }

        public function onLogout(success:Object):void {         
                                    Alert.show("testtesttest");             
            }

Original comment by gulsun.falke@gmail.com on 2 Jun 2011 at 4:02

GoogleCodeExporter commented 8 years ago
Firefox, Internetexpolorer, Chrome.
I have also added in my html javascript and in lib GraphAPI_Web_1_6_1.swc.  

<script type="text/javascript" 
src="http://connect.facebook.net/en_US/all.js"</script>

        // it works
    protected function initApp():void {
                Facebook.init("210054235684310", loginHandler);
            }

       // it works
       protected function login():void {
    Facebook.login(loginHandler,{perms:"publish_stream,read_stream"});
      }

       protected function loginHandler(success:Object, fail:Object):void {
                if(success){
                    Alert.show("success");
                }
                else{
                    Alert.show("Facebook login failed : " + fail);
                }
       }

             // it does not work
             private function logout():void {
                Facebook.logout(onLogout);

             }

        public function onLogout(success:Object):void {         
                                    Alert.show("testtesttest");             
            }

Original comment by gulsun.falke@gmail.com on 2 Jun 2011 at 4:02

GoogleCodeExporter commented 8 years ago
sorry init does not work as well. init does not execute loginHandler

Original comment by gulsun.falke@gmail.com on 2 Jun 2011 at 6:08

GoogleCodeExporter commented 8 years ago
Try to ensure that you are adding a "name" attribute (with the same value as 
the "id" attribute) to the embed/object tag in your embed code. The API uses 
this value in Firefox and Chrome to get a  reference to the swf for 
ExternalInterface communication. It sounds like the issue may be related to the 
this thread:
http://code.google.com/p/facebook-actionscript-api/issues/detail?id=165

If that doesn't work, can we see some of your HTML?

Original comment by rovertn...@gmail.com on 3 Jun 2011 at 9:02

GoogleCodeExporter commented 8 years ago
Logout does not work when we embed our swf to php page.what we should do now?

Original comment by vinitkar...@gmail.com on 9 Feb 2012 at 11:42