Graph API Version

Instagram User

Reading

An Instagram user

Examples

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

follow_count

int32

Number of Instagram users that this Instagram user follows

followed_by_count

int32

Number of Instagram users that follow this Instagram user

has_profile_picture

bool

Indicates whether Instagram Account has a profile picture

is_private

bool

Whether the Instagram user is private

is_published

bool

Whether the Instagram user is published

media_count

int32

Number of active media posted by this Instagram user

profile_pic

string

URI to user's Instagram profile picture

username

string

Instagram username

Edges

EdgeDescription

agencies

The businesses which are not owner but can advertise for this IG account

authorized_adaccounts

The ad accounts which are authorized to advertise for this IG account

Validation Rules

ErrorDescription
100Invalid parameter
275Cannot determine the target object for this request. Currently supported objects include ad account, business account and associated objects.
294Managing advertisements requires an access token with the extended permission for ads_management

Creating

You can make a POST request to page_backed_instagram_accounts edge from the following paths:
When posting to this edge, an InstagramUser will be created.

Parameters

This endpoint doesn't have any parameters.

Return Type

This endpoint supports read-after-write and will read the node represented by id in the return type.
Struct {
id: numeric string,
}

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.