Reputation: 83
The facebook app I have developed in Flex 4.5 using the ActionScript 3.0 sdk is for getting basic info like name, profile photo and date of birth, recent status and also to post a new status to facebook page. the app is a web application.
here is the link for the app "http://teens-group.com/adi/"
When i click on the login button the app opens a new window checking for the user name and password for facebook. when i login it doesn't refresh the app page and show me the logged in page. I have to re-fresh the app page again to go to the logged in page.
please help???
Upvotes: 0
Views: 444
Reputation: 3246
I do not know if you solved your problem or not. But this is a bug in the actionscript-facebook-api.The solution is to replace the code part in handleAuthResponseChange() function in Facebook.as
if (_initCallback != null) {
_initCallback(authResponse, null);
_initCallback = null;
}
if (_loginCallback != null) {
_loginCallback(authResponse, null);
_loginCallback = null;
}
with
if (_initCallback != null) {
_initCallback(authResponse, null);
if(authResponse != null) _initCallback = null;
}
if (_loginCallback != null) {
_loginCallback(authResponse, null);
if(authResponse != null) _loginCallback = null;
}
Upvotes: 2