How to refresh access token?

If you don’t know what Instagram access token is, please read this article first. There are 3 methods of refreshing your access token.

Refreshing access token for users logged in with e-mail and password

If you are logged in using e-mail and password you can find list of all your Instagram accounts on this page or on your Dashboard.

Each Instagram account will have the information about the access token status like on the image below:

In this example, first account @paul has expired access token, and the token needs to be refreshed. Second account @best.of.instagram has active access token.

If access token for your account is expired, please click Refresh token button to refresh the token. Depends on how your account was connected to our website you will be either redirected to Instagram or Facebook page.

Make sure that you will grant all requested permissions to successfully refresh the token.

Access token page for users logged in with Facebook or Instagram

If you are already logged in to LightWidget but not via e-mail and password, you can refresh the token on access token page.

If your access token is active you do not have to refresh the token. If you see message that it’s not active you need to refresh the token.

Simply click Update your access token button and it will receive new token.

You can read more about this section in following article – How to check if my access token is active?

One thing to keep in mind here – if you log in to our website with social media (not via e-mail and password) and your token is expired, we will automatically request for new one.

It might happen that you will see that token is active. There should be also a note that it was just refreshed and your widgets are in the refresh queue.

Access token page when you are not logged in

In order to refresh your Instagram access token via access token page when you are not logged in:

  1. Visit following page – https://lightwidget.com/access-token
  2. Click Refresh the token button.

If you are not logged in to Instagram you need to log in with your account. The account you will log into will obtain new access token. You should be redirected to our website and see message about new access token.

If you have widgets connected to your account they will be added to our refresh queue. Few minutes after that all your widgets should be refreshed with new access token.

Comments (14)

  • It's working!

    andyguettner

  • O Botão sumiu !

    nitronplast

  • What if the widget is on a Developer account? Can the Developer refresh the token or does the IG account owner need to do it only?

    roberta

    • lightwidget profile picture

      Hi! The developer has the option to refresh the access token, but he must either know the credentials to the Instagram account (if it is connected over customer connection) or have a role on the Facebook Page connected with the Instagram account (in case of business connection).

      lightwidget

  • Why do the access tokens expire? And is there a way to prevent this?

    marketing

    • lightwidget profile picture

      The access tokens are an integral part of the official Instagram APIs that we are using to refresh our widgets. Due to the previous abuses of the APIs (for instance Cambridge Analytica data scandal), Facebook/Instagram decided to add shorter expiration times for the access tokens to protect user privacy. Currently, it is not possible to prevent the token expiration, we don't have any impact on the token expiration date, since it's set by Instagram, not by LightWidget. If you have at least one upgraded widget you can turn on the expired token notifications in the Settings of your account. Next time, when the token will expire, you will get an email notification with the link to refresh the token:)

      lightwidget

  • I updated my password on Instagram and now the images are not showing, how can I fix it?

    muebleslafabrica

    • lightwidget profile picture

      Hi! Changing the password to your Instagram accounts marks your access token as expired immediately and soon after, the images will stop showing in the widget. The token needs to be refreshed according to the instructions in this article:) In case of any troubles, please drop us a support ticket!

      lightwidget

  • Does updating the token destroy the original widget?

    fieberanob

    • lightwidget profile picture

      Updating the token does not destroy the widget:) If you have any problem with the widget after refreshing the token, please contact us via our support form!

      lightwidget

  • I cannot get our access token to refresh. Please help!

    morganc

  • I cannot get our access token to refresh. Please help! This is the error message I keep getting: Whoops! An error occurred! Unfortunately, an error occurred while processing your request:( This exception has been logged and our developers will take further actions. Error code: 1075 Error details: Unable to refresh the access token. It seems that you never connected this Instagram account with the LightWidget before. Please log in to our website first to connect this account first. Please try again. If this error will happen again you can always report this problem via our support page.

    morganc

    • lightwidget profile picture

      Hi there! If this is regarding the @dunnortho812 Instagram account, please make sure that you will use the "Business connection" button on the refresh token page, not the Consumer connection. Your Instagram account is using the Business connection, hence this method is required. If it will not solve the problem, please drop us a support ticket with more details, we will have a closer look!

      lightwidget

  • It looks like their API allows for tokens to be automatically refreshed as long as they haven't expired: https://developers.facebook.com/docs/instagram-basic-display-api/reference/refresh_access_token/ Would that be something you would be able to run on a CRON to automatically update the tokens for Instagram?

    justin

You must be logged in to post comments.