[facebook] 在FBML APP中使用FB幣

LINEで送る
[`evernote` not found]


其實我真的不明白為了什麼facebook要把這件事搞得那~麼複雜!?
明明FBML就是他自幾家的東西,應該是要支援最好,隨便呼叫個API就可以用才對!結果已經花了九牛二虎的力氣加上兩個禮拜的時間申請好EIN,迎接的卻是:
API Error Code: 1151
API Error Description: Application is not enabled for using Facebook Credits.
Error Message: Invalid Application
然後看了半天的英文才發現官方是這樣回答

Hi Everyone,

Thanks for the comments. All games on Facebook.com will be required to migrate to Facebook Credits as their exclusive payment method by July 1st, 2011.

This includes fbml games. As we are in the process of deprecating fbml, announced last August, Credits is not supported in fbml. All fbml games will need to migrate to iframe to use Credits.

Thank you,

Sara

Facebook Platform Team

這是什麼鬼???

還好,還是有很好心很熱血的人分享了目前(2011.06.30)可行的方式:

  1. copy Facebook Credits API範例程式
  2. 把index.php其中的
    method: 'pay'

    改成

    method: 'pay.prompt'
  3. 在自己的FBML APP中始用
    <fb:iframe src=" samlple's index.php" scrolling="no" frameborder="1" width="760" height="2000"/></fb:iframe>

4 則迴響於《[facebook] 在FBML APP中使用FB幣

回應已關閉。