jstolpe / blog_code

238 stars 386 forks source link

Getting ig_id of a public profile instagram #5

Closed adithyaan-creator closed 2 years ago

adithyaan-creator commented 4 years ago

How can I get the ig_id of an instagram public page, for example a company profile? Came upon such an end-point to get the followers and media count. How do I get the ig_id of a company profile?

"https://graph.facebook.com/v3.2/17841405309211844?fields=business_discovery.username(bluebottle){followers_count,media_count}&access_token={access-token}"

jstolpe commented 2 years ago

The account that you want to get an id for needs to authorize your application so you can get a user access token for that account through your app. Then you can use the token to get the id.