所以我有新的开放图支付对象:
<!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="My awesome product" />
<meta property="og:image" content="http://lorempixel.com/200/200/" />
<meta property="og:url" content="https://my_awesome_url" />
<meta property="og:description" content="Description" />
<meta property="product:price:amount" content="1.00"/>
<meta property="product:price:currency" content="LVL"/>
</head>
</html>
并从调用:
FB.ui({
method: 'pay',
action: 'purchaseitem',
product: 'https://my_awesome_url',
},
function (data) {console.log(data)}
);
我得到的只是
处理您的付款时出现问题。您尚未为此交易支付任何费用,因此请重试。
和回调中的数据 -null
我无法理解它有什么问题。使用https://developers.facebook.com/tools/debug进行调试可以很好地加载对象,并在通过调试加载后加载事件,当从缓存中调用此项目时,它仍然会失败并保持沉默。