gpt4 book ai didi

javascript - FacebookConnectPlugin。登录返回错误 "Session: an attempt was made to request new permissions for a session that has a pending request"

转载 作者:行者123 更新时间:2023-11-28 07:13:47 27 4
gpt4 key购买 nike

我正在使用phonegap-facebook-plugin ,当我运行下面的代码时,出现了一个奇怪的错误。我仅在 Android 上遇到此问题。

Session: an attempt was made to request new permissions for a sessionthat has a pending request

facebookConnectPlugin.login(
["public_profile"],

data => {
// Success callback
},

err => {
// Fail callback

console.log("Error:", err);
// Session: an attempt was made to request new permissions for a session that has a pending request
}
);

我使用:

  • com.phonegap.plugins.facebookconnect 0.11.0
  • Cordova 4.1.2
  • Android 5.*

有人可以帮忙吗?

最佳答案

前几天我也遇到了同样的问题,尽管我使用的是 facebookConnectPlugin.api("me/albums?fields=id,photos{images,album}", ["user_photos"],

我最终登录了 Facebook 的开发者端,并且必须让该应用程序获准使用 "user_photos" 。我在某处读到他们说,如果您不在开发者模式下使用开发者帐户进行测试,则会导致这样的问题。

此外,如果您不需要请求权限,请尝试将其传递为 null。

关于javascript - FacebookConnectPlugin。登录返回错误 "Session: an attempt was made to request new permissions for a session that has a pending request",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31050123/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com