简体   繁体   中英

Facebook payments API - Error with no code

I am implementing the Facebook payments API and receiving an odd error dialog with no populated data, it basically looks as follows:

An error occurred, Please try again later.
API Error Code:
API Error Description:

The javascript returns a null object in the callback.

JS implementation:

FB.ui({
    method: 'pay',
action: 'purchaseitem',
product: 'http://localhost:8000/PRODUCT_URL',
},
function(data) {
console.log(data);
});

Any help would be much appreciated.

Found the error: Seems like the product value was incorrect - whether thats because its hosted locally i'm not sure but it worked when I used a valid product from Facebook's 'Friend Smash' example.

Hope this helps someone

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM