Flex Mobile - Android 4.2.2 Login issues.

119 views
Skip to first unread message

Joachim Petersen

unread,
May 19, 2013, 2:17:16 PM5/19/13
to facebook-act...@googlegroups.com
Hello

Is there any fix for the login issues on Android 4.2.2?

It works fine on lower android systems and IOS.

The login and premessions asks and popup as normal but the success object is not fired properly? Has anybody any idea how to fix this or is this also news to you guys?

Thank you.

Joachim Petersen

unread,
May 20, 2013, 6:01:50 AM5/20/13
to facebook-act...@googlegroups.com
I have tested that it never gets the session after login and does not fire fail or success when the stagewebview's Login button is pressed(facebook api website)
Anyone got a fix for this? It is only not working on the newer versions of android (4.2.2),

            public function init():void
            {               
                FacebookMobile.init(FbAppID,onLogin,LoadPersistenceData("FbSessionKey"));             
            }
            protected function onLogin(success:Object, fail:Object):void{
                if(success){
                    lblhest.text = "succes";
                    SavePersistenceData("FbSessionKey",success.accessToken);
                    navigator.pushView(views.RandomView);
                }else if(fail)
                {
                    var facebookWebView:StageWebView = new StageWebView();
                    facebookWebView.viewPort = new Rectangle(0,0,this.stage.width,this.stage.height);
                    FacebookMobile.login(onLogin, this.stage,["email","read_stream","publish_stream"], facebookWebView);
                    lblhest.text = "fail";
                }
            }
So the stageview does not fire success when the stagewebview is finished (logged in pressed OK to the FB app premissions) - it just sits there as a white overlay, never triggering the succes after you Press the facebook Login button and finished with the login dialog where it should trigger the success. Any fix for this?
Reply all
Reply to author
Forward
0 new messages