I will try to configure payment for the FB application for products with set prices; On the Javascript side, I:
function callOrderUp()
{
alert("GO!1");
FB.ui({
method : 'pay',
action: 'purchaseitem',
display: 'popup',
product : "https://www.manyfbgames.com/ninetofive/products/product1.html",
quantity : 1
},
function(response)
{
alert(JSON.stringify(response, null, 4));
}
);
}
Product File Content:
<!DOCTYPE html>
<html>
<head prefix=
"og: http://ogp.me/ns#
fb: http://ogp.me/ns/fb#
product: http://ogp.me/ns/product#">
<meta property="og:type" content="og:product" />
<meta property="og:title" content="Test 1" />
<meta property="og:plural_title" content="Test 2" />
<meta property="og:image" content="http://manyfbgames.com/ninetofive/products/product1.png" />
<meta property="og:description" content="Friend Smash Coins to purchase upgrades and items!" />
<meta property="og:url" content="https://www.manyfbgames.com/ninetofive/products/product1.html" />
<meta property="product:price:amount" content="2"/>
<meta property="product:price:currency" content="USD"/>
</head>
</html>
For some reason, I always get this error:
An error occurred. Please try again later.
API Error Code: 1383051
API Error Description: Can't parse open graph object. Property price doesn't exist for item 218298155037105
But I am sure that the price of the product data is correct, and I see that the price is set! What else could be causing this?
source
share