Graph API Version

Open Graph Property Config

Reading

A config of an Open Graph property

Example

Graph API Explorer
GET v2.11/...?fields={fieldname_of_type_OpenGraphPropertyConfig} 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(
    '...?fields={fieldname_of_type_OpenGraphPropertyConfig}',
    '{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(
    "...?fields={fieldname_of_type_OpenGraphPropertyConfig}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "...?fields={fieldname_of_type_OpenGraphPropertyConfig}",
    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:@"...?fields={fieldname_of_type_OpenGraphPropertyConfig}"
                                      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

allowed_values

list<string>

For enum properties, the set of allowed values

convert_lowercase

bool

For string properties, whether the value is always lowercase

convert_uppercase

bool

For string properties, whether the value is always uppercase

display_name

string

Human-readable name of the property

formal_name

string

The name of the property to use in markup and API

hide_from_news_feed

bool

Whether the property is hidden from News Feed

is_array

bool

Whether the property takes multiple values

max_allowed

float

For numeric properties, the upper bound on the value

max_length

int32

For string properties, the upper bound on the value length

min_allowed

float

For numeric properties, the lower bound on the value

min_length

int32

For string properties, the lower bound on the value length

reference_object_type

numeric string

For reference properties, the object type associated with the property

required

bool

Whether the property is required

required_group

string

If set, at least one property for each group needs to be set

struct_config

For struct properties, the config for the nested properties

type

string

Type of the property

Edges

No edges

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.