Open GoogleCodeExporter opened 9 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
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
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
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
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
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
Original issue reported on code.google.com by
gulsun.falke@gmail.com
on 2 Jun 2011 at 8:51