facebook订阅备用价格错误

时间:2014-12-11 14:43:33

标签: javascript facebook facebook-graph-api

我正在尝试在我的脸书应用程序上添加订阅弹出窗口,但是我收到一个关于alternate_price未正确设置的错误(即使参数被提及为可选。我甚至尝试删除参数,或设置为0,没有运气)。

我得到的错误如下,但我不明白为什么:

    An error occurred. Please try again later.
    API Error Code: 1383051
    API Error Description: Can't parse open graph object. 
[OGPropertySelectorInvalidException] The given selector string "alternate_price" is invalid for Ent with ID 791929967540538.

我在主页上有这个代码:

<a href="#" onclick="completePayment()"> 
    <img src="https://www.**********.com/subscribe.png" alt="Subscribe" title="Subscribe" style="vertical-align: top"/>
    <script src="https://connect.facebook.net/en_US/all.js"></script>
    <script type="text/javascript">
     FB.init({
      appId:'2***********6',
      cookie:true,
      status:true,
      xfbml:true
     });
      function completePayment(){
         var obj = {
        method: 'pay',
        action: 'create_subscription',
        product: 'https://apps.facebook.com/******/?product=1'
     };
    FB.ui(obj);
    }
    </script>
    </a>

这是&#39; https://apps.facebook.com/ ****** /?product = 1&#39;的HTML代码。页:

<html>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# fbpayment: http://ogp.me/ns/fb/fbpayment#">        
    <meta property="og:title" content="********* Subscription" />
    <meta property="og:image" content="https://s-static.ak.fbcdn.net/images/devsite/attachment_blank.png" />
    <meta property="og:description" content="****** Subscription" />
    <meta property="fbpayment:price" content="5.00 USD" />
    <meta property="fbpayment:alternate_price" content="3.49 EUR" />
    <meta property="fbpayment:alternate_price" content="3.49 GBP" />
    <meta property="fbpayment:trial_duration" content="7 days" />
    <meta property="fbpayment:billing_period" content="1 week" />
    <meta property="fb:app_id" content="2*************6" />
    <meta property="og:url" content="https://apps.facebook.com/*******/?product=1" />
    <meta property="og:type" content="fbpayment:subscription" />
</html>

0 个答案:

没有答案