Graph API Version

/{user-id}/payment_transactions

The Facebook Payments orders this person placed with an app.

This document describes a technology that is still in its final design phase and is subject to change. We are migrating all canvas game developers in the third quarter this year and want to provide ample time for you to review this documentation before we launch local currency payments. After launch, developers will have a minimum of 90 days to implement the updated payments infrastructure to continue accepting payments. In the coming weeks, we will provide further updates on when you can begin integration.

Reading

Graph API Explorer
GET /v2.11/me/payment_transactions HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
  // Returns a `Facebook\FacebookResponse` object
  $response = $fb->get(
    '/me/payment_transactions',
    '{access-token}'
  );
} catch(Facebook\Exceptions\FacebookResponseException $e) {
  echo 'Graph returned an error: ' . $e->getMessage();
  exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
  echo 'Facebook SDK returned an error: ' . $e->getMessage();
  exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/me/payment_transactions",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/me/payment_transactions"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

Permissions

  • An app access token is required to view any transactions made using that app.

Fields

An array of Payment objects.

Publishing

You can't publish using this edge. Please see the Payments docs for details on how to integrate this into your ap.

Deleting

You can't delete using this edge.

Updating

You can't update using this edge.