Unity Facebook Canvas Inapp购买错误

时间:2017-02-02 09:45:31

标签: facebook facebook-canvas

我一直试图让facebook canvas inapp api为我的游戏虚拟物品工作很长一段时间没有任何成功。 它的统一性使得游戏在Facebook画布iframe中运行WebGL。

我使用以下代码进行交易......

FB.Canvas.Pay (product: "productID",
            quantity: 1,
            callback: delegate(IPayResult response) {
                Debug.Log (response.RawResult);
                if(onProductPurchasedSucceed != null) {
                    if( response.ResultDictionary["status"] == "completed"){    
                        onProductPurchasedSucceed("productID");
                    }
                }
            }
        );

当我从画布页面调用此方法时..这就是我最终的结果

enter image description here

enter image description here

由于它是一款简单的游戏,我选择了facebook托管功能来上传我的游戏资产。我不知道在App Domains字段中填写什么。 我试图设置apps.facebook.com,但它不接受

0 个答案:

没有答案
相关问题