圖形 API 版本

Media Fingerprint

閱讀中

Media fingerprint

新粉絲專頁體驗

This endpoint is supported for 新粉絲專頁體驗.

範例

Graph API Explorer
GET /v21.0/{media-fingerprint-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(
    '/{media-fingerprint-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(
    "/{media-fingerprint-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{media-fingerprint-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:@"/{media-fingerprint-id}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
如果想瞭解如何使用圖形 API,請參閱我們的使用圖形 API 指南

參數

這個端點沒有任何參數。

欄位

欄位說明
id
numeric string

Media fingerprint ID

duration_in_sec
float

The length of the fingerprinted content, in seconds

fingerprint_content_type
enum

Media fingerprint content type

metadata
FingerprintMetadata

The metadata associated with the fingerprinted content

title
string

The title of the fingerprinted content

universal_content_id
string

A unique code user can use to manage fingerprint. For example: International Standard Recording Code for songtracks. This is for your own use; Facebook will not use this data.

Error Codes

錯誤說明
100Invalid parameter

建立中

你無法在此端點執行此操作。

更新中

你可以向 /{media_fingerprint_id} 提出發佈要求,以更新 a MediaFingerprint

參數

參數說明
metadata
array

The fingerprint metadata, for example: metadata={'episode':'newEpisodeVal','season':'newSeasonVal'}

album
string

Album name of a songtrack. This is a required metadata field for SONGTRACK content type.

artist
string

Artist name of a songtrack. This is a required metadata field for SONGTRACK content type.

episode
string

Episode name of an episode. This is a required metadata field for EPISODE content type.

season
string

Season name of an episode. This is a required metadata field for EPISODE content type.

description
string

Description of fingerprint. This is a required metadata field for MOVIE and OTHER content type.

source
file

The source of the new fingerprint file to update. Example: @myDirectory/myFile.mp4.rdm

title
string

The title of the media content

universal_content_id
string

A unique code user can use to manage fingerprint. For example: International Standard Recording Code for songtracks. This is for your own use; Facebook will not use this data.

傳回類型

此端點支援寫入後讀取功能,並將讀取你傳送 POST 的節點。
Struct {
success: bool,
}

Error Codes

錯誤說明
100Invalid parameter

刪除中

你無法在此端點執行此操作。