简体   繁体   中英

Facebook Login on no native Android App “you already authorized”

Here I present the case:

I am developing an app that uses Facebook. We are using the Facebook API via js. The user log into mobile browser (outside of app) to Facebook. The user then comes into the app (the user already has authorized the app on Facebook some time ago). Then the user goes to log in options, and chooses a button entitled "log whit facebook", its a simple button with a js action as follows:

       $('#loginFacebookbBtn').on('vclick', function () {

            FB.login(function (response) {
                if (response.authResponse) {
                    FB.api('/me', function (response) {
                        ... do something whit the response
                    });
                } else {

                }
            }, {
                scope: "email"
            });

        }); 

Then the Facebook API show a browser popup, that ask for user credentials. I put my credentials and then the browser popup go to a second page that said:

"you already authorized (APP NAME)" (Cancel) (OK)

When I press OK, this then goes to my app but I dont want that second page on popup browser...

Sorry for my English and thank you.

这就是它的工作原理-如果用户尚未登录Facebook,则需要登录-如果用户已经在电话上登录Facebook的应用程序,则不会看到该屏幕

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM