小编Har*_*nan的帖子

会话已失效,因为用户已更改密码 - >未更改密码

亲爱的Stackoverflowia!亲爱的Facebook开发者!

几个星期前我创建了一个Facebook-App.在这段时间里它完美无缺.我的PHP脚本检查access_token是否在到期前至少10天(它自动设置为一个很长的到期日期之前),如果是这样(如果> =到期日期 - 10)它会尝试为同一用户获取新的access_token (这是我,我和我).

问题是,从昨天开始它给我一个错误:

Fatal error: Uncaught OAuthException: Error validating access token: The session has been invalidated because the user has changed the password.
Run Code Online (Sandbox Code Playgroud)

现在我的问题是:它怎么能抛出这个错误,因为我从来没有在FB上更改我的密码???

有没有人提示我正确的方向来解决这个问题?我非常感谢任何帮助.

最好的祝福,

AceLine

passwords oauth facebook-graph-api

7
推荐指数
1
解决办法
3958
查看次数

如何整合Amazon S3 OAuth 2.0

亚马逊s3是否有Oauth 2.0身份验证集成?像保管箱?Dropbox OAuth2.0集成

如果没有,亚马逊s3是否支持其他协议?

amazon-s3 amazon-web-services oauth-2.0

5
推荐指数
1
解决办法
4075
查看次数

matplotlib中缺少标签-条形图

当绘制水平条形图时,当我手动设置yaxis时,我看到在x轴和y轴上都缺少一个图例,如下所示。

bar_locations = np.arange(6)
ax.barh(bar_locations, data ,alpha=.5)
bar_locations = np.arange(6)
# data = [55, 22, 40, 56, 109, 180]
# labels = ['others', u'Belts', u'Apparel & Accessories > Jewelry', u'Jewelry', u'Fragrances', u'Watches']
ax.barh(bar_locations, data ,alpha=.5)
ax.set_yticklabels(labels)
fig.tight_layout()
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

python matplotlib

3
推荐指数
1
解决办法
873
查看次数

DOMException:注册失败 - 权限被拒绝

我有一个网络通知脚本,工作正常.但是当我在chrome版本43中测试时,我收到错误"DOMException:注册失败 - 权限被拒绝".订阅阶段发生此错误.

这是通常的注册过程的代码片段

navigator.serviceWorker.register('sw.js').then(function(reg) {
    console.log('[ServiceWorker] Registration Obj', reg);
    reg.pushManager.subscribe({
        userVisibleOnly: true
    }).then(function(sub) {
        //This never executes and catch gets called
        console.log('Subscription successful, Subscription endpoint:', sub.endpoint);
    }).catch(function(error) {
        console.log("Error during subscription ", error);
    });
}).catch(function(error) {
    if (Notification.permission === 'denied') {
        console.warn('Permission for Notifications was denied');
    } else {
        console.error('Unable to subscribe to push.', error);
    }
});
Run Code Online (Sandbox Code Playgroud)

在上面的代码中,错误发生在我执行的步骤中reg.pushManager.subscribe().

  • 这不会发生在chrome 49中.
  • 此错误始终发生在chrome版本43上.

[注意]我认为它是铬版本43的一般问题但是当我检查像goroost.com和pushcrew这样的网站时,它们似乎工作正常.只有我的不工作

javascript google-chrome service-worker web-push

2
推荐指数
2
解决办法
8956
查看次数