Media fingerprint
GET /v24.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
}];| Field | Description |
|---|---|
idnumeric string | Media fingerprint ID |
duration_in_secfloat | The length of the fingerprinted content, in seconds |
fingerprint_content_typeenum | Media fingerprint content type |
metadataFingerprintMetadata | The metadata associated with the fingerprinted content |
titlestring | The title of the fingerprinted content |
universal_content_idstring | 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 | Description |
|---|---|
| 100 | Invalid parameter |
/{media_fingerprint_id}.| Parameter | Description |
|---|---|
metadataarray | The fingerprint metadata, for example: metadata={'episode':'newEpisodeVal','season':'newSeasonVal'} |
sourcefile | The source of the new fingerprint file to update. Example: @myDirectory/myFile.mp4.rdm |
titlestring | The title of the media content |
universal_content_idstring | 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. |
success: bool, | Error | Description |
|---|---|
| 100 | Invalid parameter |