我正在完成一个Facebook即时游戏,我有这个API ,我将提供所有的游戏数据。我目前正在本地主机上加载游戏,它运行良好:
$.ajax({
type: 'GET',
url: api,
success: function (data) {
games = data;
for (var k in games) {
$('#container').append('<div class="card" style="width: 18rem;"
我需要在Facebook即时游戏中展示广告,我所在的公司希望通过与游戏服务器通信获得adID来迎接海选。在Facebook链接()上,这个游戏只能像下面这样运行:
FBInstant.player.getSignedPlayerInfoAsync('custom_payload_supplied_with_request')
.then(function (result) {
// The verification of the ID and signature should happen on server side.
SendToMyServer(
我正在做一个Facebook即时游戏,并通过相关的机器人发送自己的测试信息。
它起作用了。但并不总是,为什么?
我经常听到这样的话:
{
"error": {
"message": "(#100) Cannot send Instant Game message to user at this time.",
"type": "OAuthException",
"code": 100,
"error_subcode
有没有人知道从facebook即时游戏包中加载资产的方法。我正在使用Phaser3渲染和加载任何资源。当我打开facebook即时游戏的“测试”状态。我在控制台phaser.min.js:1 GET https://apps-[appid].apps.fbsbx.com/assets/example.png 404中得到一个错误,它在使用facebook嵌入式播放器的本地主机上工作得很好。
嗨,兄弟们,有人能帮我吗?当我上传游戏时,这个问题出现了,游戏必须通过我们的CDN引用我们支持的SDK之一。我真的需要知道为什么会这样,所以如果你能尽快帮助我,我将不胜感激 FB.init({appId: '1039135876270670',
status: true, // Check login status
cookie: true, // Enables cookies so server can access the session
xfbml: true // Parse XFBML});