This is extremely frustrating and facebook certainly doesn’t provide any GOOD example documentation so I am hoping someone can help me.
I am trying to SIMPLY make a call to the facebook graph api to pull the details of a facebook payment order #. Using the Graph API Explorer i am doing a call to /############ (the #### being the order number) and selecting the application from my app drop down list at the top to generate the app access token. What I get back is an error:
{
"error": {
"message": "(#15) This method must be called with an app access_token.",
"type": "OAuthException",
"code": 15
}
}
When I dod an app access token lookup using the following call:
when I use the access token returned I get a different error:
{
"error": {
"message": "(#15) This method is not supported for native apps",
"type": "OAuthException",
"code": 15
}
}
I have checked the app and it is set to Desktop/Native as it is a game. We take payments for the application so why I am not able to query the payments?
Adding as an answer to help anyone else that finds this question, if accessing an Order object in the Graph API is returning ‘false’, check the following:
The first case is relatively little known, but is because ‘native / desktop’ apps are assumed to have distributed the app secret in the binary.
The second is mentioned near the top of the Order object’s documentation