Graph API Version

Instagram Media

This node is for Instagram Ads and is part of the Marketing API.

Reading

An Instagram media

Permissions

Developers usually request these permissions for this endpoint:

Marketing Apps
  • ads_management
Page management Apps
  • pages_show_list
Other Apps
Permissions are not usually requested.

Examples

Graph API Explorer
GET /v2.10/{instagram-media-id} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '/{instagram-media-id}'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
/* make the API call */
FB.api(
    "/{instagram-media-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{instagram-media-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:@"/{instagram-media-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 of the Instagram media

caption_text

string

Caption text

comment_count

int32

Number of comments

content_type

int32

0 for photo, 1 for video

display_url

string

URL of the photo or cover frame

filter_name

string

Name of filter

latitude

float

Latitude of the location

like_count

int32

Number of likes

location

Location data

location_name

string

Name of location for location tag

longitude

float

Longitude of the location

owner_instagram_user

The Instagram user that owns this media.

permalink

string

Link to the media page on Instagram

taken_at

datetime

When the media was created

video_url

string

URL of the video

Edges

EdgeDescription

comments

Instagram comments

insights

Insights data

instagram_usertags

Instagram user tags

Validation Rules

ErrorDescription
100Invalid parameter

Creating

You can't perform this operation on this endpoint.

You may perform a POST request to the following edge from this node:

Validation Rules

ErrorDescription
100Invalid parameter

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.