Skip to contents

If you need to retrieve your Instagram user id, consider `cc_get_instagram_user_id()`.

Usage

cc_get_instagram_user(
  ig_user_id = NULL,
  api_version = "v19.0",
  fields = c("id", "ig_id", "username", "name", "biography", "website",
    "followers_count", "follows_count", "media_count", "profile_picture_url",
    "shopping_product_tag_eligibility"),
  fb_user_token = NULL
)

Arguments

ig_user_id

Instagram user id, typically composed of 17 digits. Not to be confused with legacy Instragram account id.

api_version

Defaults to "v18.0".

fields

Defaults to all available, consider reducing if you don't have all relevant permissions.

fb_user_token

Facebook user token (not a page token).

Details

See the relevant page in the documentation for available fields and more details https://developers.facebook.com/docs/instagram-api/reference/ig-user

Look in particular at the permissions requirements. If you have issues, consider dropping `shopping_product_tag_eligibility` from the fields, as it requires additional permissions.

Examples

if (FALSE) { # \dontrun{
cc_get_instagram_user()
} # }