我需要在Facebook即时游戏中展示广告,我所属的公司希望adID
通过与游戏服务器的通信来满足试听。从 Facebook 链接(https://developers.facebook.com/docs/games/instant-games/guides/bots-and-server-communication#backend),游戏只能像下面这样工作:
FBInstant.player.getSignedPlayerInfoAsync('custom_payload_supplied_with_request')
.then(function (result) {
// The verification of the ID and signature should happen on server side.
SendToMyServer(
result.getPlayerID(), // same value as FBInstant.player.getID()
result.getSignature(),
... //any additional parameters required for your server call
);
});