您还没有登录,请登录并再试一次请登录、再试、您还没有

2023-09-07 16:51:30 作者:Estrus(动情)

我使用的PhoneGap Facebook的连接插件(https://github.com/Wizcorp/phonegap-facebook-plugin)对于Facebook的身份验证的应用程序中这是工作到今天凌晨现在突然停止工作,并给出如下错误为不同的设备iOS和放大器; Android的:

I'm using phonegap facebook connect plugin (https://github.com/Wizcorp/phonegap-facebook-plugin) for Facebook Authentication in app. It was working till today morning. Now suddenly it stops working and gives error as below for different devices iOS & Android:

有关Android的:

For Android:

您还没有登录,您还没有登录,请登录后再试。

You are not logged in. You are not logged in. Please log in and try again.

有关iOS的:

由于URL不是由应用程序配置允许的:一个或多个给定的URL不被应用程序的设置允许的。要使用此URL您必须在应用程序的设置添加有效的本地平台

Given URL is not allowed by the application configuration: One or more of the given URL is not allowed by the App’s settings. To use this URL you must add a valid native platform in your App’s settings

我用下面的 config.xml中 code:

I'm using following code in config.xml:

<gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.9.0">    
     <param name="APP_ID" value="99885XXXXXXXXX" />
     <param name="APP_NAME" value="Test App" />
</gap:plugin>

Facebook的电话:

facebook call:

function fbLogin() {
        facebookConnectPlugin.login(
        ["public_profile", "email"],
        function (response) {
            var OAuthToken = response.authResponse.accessToken;
            var OAuthAccessToken = response.authResponse.userID;
            if (response.authResponse) {
                facebookConnectPlugin.api('/me', null,
                    function (me_response) {
                        alert("Success: " + me_response);
                        facebookConnectPlugin.logout(function (response) {}, function (response) {});                            
                    });
            }                
        },
        function (response) {                
            alert("Error: " + me_response);
        }
    );
}

不知道什么是这里的问题。

Don't know what is the issue here.

推荐答案

我有哪些弹出最后几天左右完全相同的问题。我通过生成的应用程序的设置相应的平台固定它。请注意,我只是之前的常规设置和它的工作,但事情可能最近更改了。

I had the exact same problem which popped up last few days or so. I fixed it by generating the respective platforms in the app's settings. Note that I only had the general settings before and it worked, but something probably been changed recently.

转到他设置了Facebook您的应用程序的部分(Facebook开发>我的应用则设置)在基本确保您有相应的平台。如果你这样做,它仍然没有工作,然后删除并重新创建。否则,点击[+添加平台],并按照指示。例如,为Android您需要提供:a)您的包IDB)您的发射活动的全名C)主要哈希 - 你需要生成按使用密钥工具和OpenSSL说明

好运!