Open GoogleCodeExporter opened 8 years ago
The api relies on the Facebook Javascript SDK to make the getLoginStatus()
call. However, it doesn't seem like the JS side fires the
auth.authResponseChange event when FB.getLoginStatus() is called.
If you make the javscript call yourself, you can pass in an anonymous function
and that will give you a response
FB.getLoginStatus( function(obj){...do stuff if obj.authResponse is present...}
)
Original comment by edwar...@gmail.com
on 19 Oct 2011 at 8:44
Well...it is still not working for me. Any updates?
Original comment by PAleksan...@gmail.com
on 10 May 2012 at 10:34
Edwar is correct.
But there is a bit more that should be mentioned. For starters you can go into
FacebookJSBridge.as ( should be in your com.facebook.graph.core directory if
you downloaded graph api 1.8.1 ). In FacebookJSBridge.as you will find
getLoginStatus function (this is NOT as3 ... this is javascript!! ). This
function is called when you call Facebook.getLoginStatus. So here add a
trace-type command so you can see what is happening here; I use "console.log"
for firebug to trace out what is happening, like so:
--vvvvv---- FacebookJSBridge.as -------------
getLoginStatus: function( )
{ console.log("facebookjsbridge.getLoginStatus,A " ) ;
FB.getLoginStatus( function( response )
{
console.log( "facebookjsbridge.getLoginStatus , B : " + response.status );
console.log( "facebookjsbridge.getLoginStatus , C : " + response.authResponse )
;
if( response.authResponse )
{ FBAS.updateSwfAuthResponse( response.authResponse );
}
else
{ FBAS.updateSwfAuthResponse( null );
}
}
);
},
---------------^^^^^----------------------
This might help you, depending on what your particular problem is.
Original comment by shan...@keleia.com
on 26 May 2012 at 10:27
Original issue reported on code.google.com by
bluf...@gmail.com
on 8 Oct 2011 at 10:46