亲爱的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
亚马逊s3是否有Oauth 2.0身份验证集成?像保管箱?Dropbox OAuth2.0集成
如果没有,亚马逊s3是否支持其他协议?
当绘制水平条形图时,当我手动设置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)
我有一个网络通知脚本,工作正常.但是当我在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().
[注意]我认为它是铬版本43的一般问题但是当我检查像goroost.com和pushcrew这样的网站时,它们似乎工作正常.只有我的不工作
amazon-s3 ×1
javascript ×1
matplotlib ×1
oauth ×1
oauth-2.0 ×1
passwords ×1
python ×1
web-push ×1