Facebook action script 3 API login/logout issue

前端 未结 4 1467
你的背包
你的背包 2021-01-20 02:22

I\'m making mobile AIR app for Android using Flash builder 4.5, AIR 2.6, Facebook action script 3 API the latest version.

I have a problem with login/logout. I can l

4条回答
  •  悲哀的现实
    2021-01-20 03:14

    I've had this exact problem, and after trying numerous fixes, this finally seems to work:

    The default logout functionality seems to not be properly clearing cookies via the FacebookMobile actionscript API. The solution in comment #33 here worked for me, reproduced here. Make sure to sub in your own APP_ID:

    function logout(e:MouseEvent):void {
      FacebookMobile.logout(onLogout, "https://m.facebook.com/dialog/permissions.request?app_id=APP_ID&display=touch&next=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Flogin_success.html&type=user_agent&perms=publish_stream&fbconnect=1");
    }
    
    function onLogout(result:Object):void
    {
      trace("Perfect Log Out!")
    }
    

提交回复
热议问题