Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API Error Code 1383146 in Facebook Canvas API for Unity while making payment

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.

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

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.

like image 492
Yaron Mushinsky Avatar asked Dec 07 '14 12:12

Yaron Mushinsky


1 Answers

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.

When using the graph object ID, I am finally able to perform purchases.

like image 58
Yaron Mushinsky Avatar answered Nov 15 '22 06:11

Yaron Mushinsky