alon
alon

Reputation: 25

Facebook payment returns error code 200 with status "Request aborted"

I have an app on facebook which users buy credits to play in a game. For some reason when I make the call to facebook API like this:

var obj =
{
    method: 'pay',
    action: 'purchaseitem',
    product: product URI
    request_id: requestID
};

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

In the callback function I get data object which contains: data.error_code = '200'; data.error_message = 'Request aborted'

Anyone can please advise why is this happening?

Upvotes: 1

Views: 430

Answers (2)

ShawnDaGeek
ShawnDaGeek

Reputation: 4150

If fast or accidental double clicks are an issue due to performance or user end error perhaps we need to try to use javascript to remove button from DOM on user click removing any chance of the error.

Upvotes: 0

Rotem Orbach
Rotem Orbach

Reputation: 169

I know this is old, but if someone still needs an answer, I believe that the issue is related to the fact that the end users are double-clicking the button, hence creating a call to another Ajax request and therefor the first request is being aborted.

Cheers!

Upvotes: 3

Related Questions