开发者

Facebook APP in Flex 4.5

The facebook app I have developed in Flex 4.5 using the ActionScript 3.0 s开发者_Python百科dk 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???


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;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜