Вопрос

I am using Facebook Credits.

I have set my user id as test user in app dashboard payments section.

Evey thing works fine, the transaction completed successfully, I get the order_id , then while fetching the details of that order_id to check whether it exists or not, the facebook Api gives the error

Fatal error: Uncaught GraphMethodException: Unsupported get request. thrown in 

and testing by file_get_contents gives the following error

failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request 

Using cUrl for checking its details also didn't work.

and the big point is that when i copy the link ( which is to be executed either by Facebook graph api, file_get_contents, and by cUrl ) and paste it in url, It works very fine.

I am so much worried, what is the problem with Facebook api, file_get_contents.

Kindly help me in this regard. Thanks in advance

Это было полезно?

Решение

This is correct, test orders are not retrievable via the API.

This is mentioned on the Order API documentation -

Note: You must use real orders when calling the Graph API. Transactions from the users listed in the 'Payments Testers' section of your app settings are not be processed and will not appear in the Order API

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top