Home Social Media How to Generate an Instagram Access Token in A Safer Way

How to Generate an Instagram Access Token in A Safer Way

There are a bunch of Instagram based apps developed by third-party developers, including Jet Elements, an Elementor add-on that allows you to display your Instagram feed to your WordPress website. Before being able to use an Instagram-based app, users need to connect their Instagram account with the app they want to use using an Access Token. Access Token itself is a string that identifies a user, app, or page. An Access Token can be used by an app to make graph API calls.

To generate an Instagram Access Token, you need to register a client app to get the client ID. There are lots of Access Token generators available on the internet, but they request access to your Instagram account, which can be a bit risky if the generator you use is it not provided by a trusted party. There is a safer way to generate an Instagram Access Token.

First off, visit the Instagram developer page and login with your account.

Click Manage Clients on the top bar, followed by Register a New Client to create a new client app. Or, you can simply copy the client ID if you already have a client app.

Give your app a name and description. Make sure to not use the word “Instagram”, “IG”, “insta” or “gram” since they are not allowed by Instagram. On the Website URL: and Valid redirect URIs: fields, you can type “http://localhost”. Click the Register button. Before clicking this button, click the Security tab and uncheck the Disable implicit OAuth: option.

Once your client app is created, copy its client ID.

Next, type the following URL on the address bar of your web browser and hit enter. Replace the client id (CLIENT_ID_HERE) with the client ID you have just copied above.

https://www.instagram.com/oauth/authorize/?client_id=[CLIENT_ID_HERE]&redirect_uri=http://localhost&response_type=token

You will see the following dialog page. Click the Authorize button.

You will get an error message (“Unable to connect” in most cases) after clicking the Authorize button on the dialog page above, but it’s not a problem. Once you got this error message, go to the address bar of your web browser to copy your Access Token. The string after “access_token=”, that’s your Access Token.

You can now use your Access Token to integrate your Instagram account with a third-party app you want to use.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

MOST-READ THIS WEEK