Cordova Facebook Login - Sudden Failure on Oct 1st 2020

夙愿已清 提交于 2020-11-29 19:12:40

问题


We are using cordova-plugin-facebook4 to manage Facebook login within our Cordova apps.

Facebook login suddenly started failing today (Oct 1st 2020).

When calling the facebookConnectPlugin.login, it keeps returning this error:

"Facebook error: Caught exception: (#200) Missing Permissions"

It has been working fine all the while, and our app is authorized for those permissions. This is the code used:

facebookConnectPlugin.login(["email","public_profile","user_birthday","user_location"], 
    function(response) {
        // do something
    },
    function(err) {
        console.log(err);
    }
);

We tried completely removing all the permissions, or just using a single one like "email", but the same error persists. The error happens on both iOS and Android.

We are using Cordova 9.0, cordova-plugin-facebook4 6.4.0.

Please advise as users are not able to login to our apps since today. Thank you.

UPDATE: There appears to be a global Facebook Login outage affecting many websites and apps: https://twitter.com/search?q=facebook%20login%20&src=typed_query&f=live

Also, if you are using "link" permission on website FB authentication, you can try removing it as that is additionally a cause for permission error too.

We are monitoring it to see if this problem is resolved, and will close the question if so.


回答1:


There appears to be a global Facebook Login outage affecting many websites and apps: https://twitter.com/search?q=facebook%20login%20&src=typed_query&f=live

For website FB Graph API integration, if you are querying the "link" field for User, you can try removing it as that seems to additionally cause permission error too.

The login problem seems to have subsided after half a day. There are still occasional login errors but after a few retries it will go through. It is definitely an issue at Facebook's end, so the only thing we can do is to wait it out.



来源:https://stackoverflow.com/questions/64150293/cordova-facebook-login-sudden-failure-on-oct-1st-2020

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!