facebook - Facebook Instant Games 不提供玩家照片
问题描述
我正在使用此代码获取玩家照片,但响应总是像这样的标准照片网址:https ://platform-lookaside.fbsbx.com/platform/instantgames/profile_pic.jpg?igpid=2740003129452224&height=256&width=256&ext=1585811827&hash=AeSTzH9PG8LqK8se
这个编码有什么问题?
window.onload = function() {
FBInstant.initializeAsync().then(function() {
FBInstant.startGameAsync().then(function() {
FBInstant.player.getSignedPlayerInfoAsync().then(function (result) {
console.log(FBInstant.player.getPhoto());
});
});
});
}
解决方案
推荐阅读
- java - 在多模块 java 项目中使用 lib commons-dbcp2(BasicDataSource 类)时出错
- python - 使用滑块通过过滤数据来更新饼图(Bokeh)
- python - 在 Python 中发送 mp3 文件而不丢失任何元数据的正确方法。(Base64 或其他)|AWS Lambda | S3 | 转录 | Base64 |
- javascript - 如何将输入的 id 和值都传递给 HTML 中的 JS 函数?
- javascript - wkhtmltopdf 和旧的谷歌图表不再一起工作了吗?
- c++ - Visual Studio 2019 C++ - 编译时错误报告错误
- c++ - 为什么我没有收到 DBT_DEVTYP_VOLUME
- go - 如何在查询中使用 Firestore DocumentID __name__
- r - 是否有一种一次性的方法可以在 r 中将 print()/cut() 替换为 message()/warning()
- php - ErrorException htmlspecialchars() 期望参数 1 是字符串,给定对象 ()