无法初始化Facebook付款,"帐户ID丢失"错误1383056

时间:2014-06-18 10:53:11

标签: facebook payment facebook-apps

按下“购买”按钮时,会出现以下错误:

error_code:1383056

error_message:“帐户ID丢失。

window.fbAsyncInit = function() {
        FB.init({
          appId      : appId,
          status     : true,
          cookie     : true,
          xfbml      : true
        });

        function buy() {
          var obj = {
            method: 'pay',
            action: 'purchaseitem',
            product: productLink
          };

          FB.ui(obj, function(data) {
              console.log(data);
          });
        }

        document.getElementById('pay').onclick = function() {buy()};
      };

      // Load the SDK Asynchronously
      (function(d){
        var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
        if (d.getElementById(id)) { return; }
        js = d.createElement('script'); js.id = id; js.async = true;
        js.src = "//connect.facebook.net/en_US/all.js";
        ref.parentNode.insertBefore(js, ref);
      }(document));
    </script>

测试和活动应用中都会出现错误。代码示例来自那里:https://developers.facebook.com/docs/concepts/payments/dialog/

产品代码:

<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="IE Coupon" />
    <meta property="og:plural_title"           content="IE Coupons" />
    <meta property="og:image"                  content="http://forestowner.com/game/img/crystal_ico.png" />
    <meta property="og:description"            content="Interactive coupons" />
    <meta property="og:url"                    content="http://forestowner.com/game/crystal.html" />
    <meta property="product:price:amount"      content="0.00"/>
    <meta property="product:price:currency"    content="USD"/>
  </head>
</html>

错误的原因是什么?

0 个答案:

没有答案