Versi Graph API

Place Topic

Membaca

The category of a place Page

New Page Experience

This endpoint is supported for New Page Experience.

Feature Permissions

NamaKeterangan
Akses Konten Publik HalamanThis feature permission may be required.

Contoh

Graph API Explorer
GET /v19.0/{place-topic-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(
    '/{place-topic-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(
    "/{place-topic-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{place-topic-id}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/{place-topic-id}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
Jika Anda ingin mempelajari cara menggunakan Graph API, baca Menggunakan panduan Graph API kami.

Parameter

ParameterKeterangan
icon_size
enum{24, 36, 48, 72}

The size of the icon to get, one of 36, 48, or 72

Kolom

KolomKeterangan
id
numeric string

The topic ID

count
unsigned int32

How many Pages have this category

has_children
bool

Whether there are subcategories of this category

icon_url
string

The URL for the icon representing this category

name
string

Localized name of the category

parent_ids
list<id>

IDs of any parent categories that this is a subcategory of

plural_name
string

Localized plural name of the category

top_subtopic_names
list<string>

Names of the subtopics associated with the most pages

Error Codes

KesalahanDescription
100Invalid parameter
190Invalid OAuth 2.0 Access Token

Membuat

Anda tidak dapat melakukan operasi ini pada titik akhir ini.

Memperbarui

Anda tidak dapat melakukan operasi ini pada titik akhir ini.

Menghapus

Anda tidak dapat melakukan operasi ini pada titik akhir ini.