Graph API Version

Open Graph Action Type

Reading

An Open Graph action type

Example

Graph API Explorer
GET /v2.11/{open-graph-action-type-id} 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(
    '/{open-graph-action-type-id}',
    '{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 */
FB.api(
    "/{open-graph-action-type-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{open-graph-action-type-id}",
    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:@"/{open-graph-action-type-id}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
If you want to learn how to use the Graph API, read our Using Graph API guide.

Parameters

This endpoint doesn't have any parameters.

Fields

FieldDescription

id

numeric string

ID

allow_multiple_references

bool

Whether multiple objects can be referenced by the action

app_preposition

string

The preposition used to address the app

button_text

string

Button text

description

string

Description

is_app_secret_required

bool

Whether the app secret is required for API calls related to actions of this type

name

string

Name

object_types

list<id>

Object types associated with this action type

plural_past

string

The plural past form of the action

plural_present

string

The plural present form of the action

property_config

Per-property config

singular_past

string

The singular past form of the action

singular_present

string

The singular present form of the action

tenses_disabled

int32

Bitmap of tenses that are disabled (the least significant bit relates to past tense, the second least significant relates to present tense

type

string

Type

Edges

No edges

Validation Rules

ErrorDescription
100Invalid parameter

Creating

You can't perform this operation on this endpoint.

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.