Facebook Credits Error!

Posted by on Apr 22, 2013 in Scripting Facebook Apps | 61 comments

As per this post title, there are several errors which is returned by Facebook Credits API:

  1. You did all but it’s still not working.
  2. Facebook Credits Error: “The app you are using is not responding. Please try again later.”
  3. Facebook Credits is not returning the correct FBUID of the purchaser.

1a) To cover the first error, you need to register a company and select this company on your Facebook Apps Setting Page as your main payout option.Your Facebook Credit will not work if you have not completed this step.

1b ) For more information on registering you company info, please click on this link: https://developers.facebook.com/docs/payments/company/

Remark: you can’t undo this option once you have saved your company info.

2a) If you encounter this error: “The app you are using is not responding. Please try again later.” when you are using their demo scripting located at https://developers.facebook.com/docs/payments/callback/#php_example.

  • To fix this error, change line 26 at your callback.php from “if ($item_id == ‘1a’) {” to “if ($item_id == ‘1’) {“. This is because Facebook only support this field in one character only and not the so said two characters.

Facebook Credits Error

2b) For the Pay Dialog scripting section located at https://developers.facebook.com/docs/reference/dialogs/pay/

  • Change line 24 from “order_info: {‘item_id’: ‘1a’},” to “order_info: {‘item_id’: ‘1’},”

Facebook Credits Error

2c) So as you can see, Facebook has limited this parameter to one character only. If you intended to have more types of credits to be purchase for your customers, the item_id that can be used is from 1 to 9 only as per my current testing.

3) If in the event your callback.php is not returning the correct FBUID, for example 10000142367E-14 instead of 1000014236735 the correct FBUID. Please contact me after you did a donation at a minimum of USD  $3.50. Once I get this donation, I will contact you as per your Paypal registered email with the complete function, fixed and example as per above.

If in the event this article has solved your problems, I do appreciated it if you can do some donation to me. This donation is to cover my web hosting expenses and etc.

468 ad

Leave a Comment