token refresh url obsolete for instagram

Created on 1 August 2024, 4 months ago
Updated 16 September 2024, 2 months ago

Problem/Motivation

url structure to refresh long live tokens is not longer working, it seems that instagram has changed the url shape of this specific endpoint to:

GET https://graph.instagram.com/refresh_access_token
?grant_type=ig_refresh_token
&access_token={long-lived-access-token}

currently I see that this module uses an instagram wrapper https://github.com/espresso-dev/instagram-basic-display-php that has been inactive for quite some time and might be the source of the problem since the token refresh method comes from one of its classes:
EspressoDev\InstagramBasicDisplay\InstagramBasicDisplay as well as some other methods to validate if a token refresh is actually needed.

Steps to reproduce

  • install the module
  • create an instagram simple app consumer
  • generate token
  • fill data in social feed module for instagram and save
  • wait for token expiration (it wont be renewed)

Proposed resolution

I'm not an expert in php or drupal module development, but I think that implementing other wrapper for instagram since espresso-dev seems to have abandonned the instagram-basic-display-php project

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024