问题描述
我已在Unity应用程式中执行付款,并已在我的伺服器中以HTML格式定义产品,并使用FB的侦错工具检索过这些产品。除了定价和命名,以及照片链接,产品与Facebook的付款示例相同。
I have implemented payments in my Unity app and have defined products in HTML form in my server, and have crawled them with FB's debug tool. The products are identical to Facebook's payments example apart from pricing and naming, as well as the photo link.
然而,当我在将应用程序部署到Canvas之后运行FB.Canvas.Buy时,会出现以下错误:
Yet, when I run FB.Canvas.Buy after deploying the app to Canvas, I get the following error:
An error occurred. Please try again later.
API Error Code: 1383146
API Error Description: invalid og type. Expected og:product, got website
此错误没有任何文档,我可以在任何搜索引擎或在Facebook自己的文档。
This error has no documentation I can seem to find on any search engine or on Facebook's own documentation.
任何帮助将不胜感激,谢谢。
Any help would be appreciated, thank you.
推荐答案
我发现问题是我将实际的 HTML产品网址
I found the problem was I was passing the actual URL of the HTML product into the pay dialog rather than the graph object ID.
使用图形对象ID时,我终于能够执行购买。
When using the graph object ID, I am finally able to perform purchases.
这篇关于API错误代码1383146在Facebook Canvas API for Unity,同时进行付款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!