# Node-red-node-instagram not authenticating - "Invalid Client ID"

**URL:** <https://discourse.nodered.org/t/node-red-node-instagram-not-authenticating-invalid-client-id/18931>\
**Category:** General\
**Created:** [8 December 2019 23:42 UTC](https://discourse.nodered.org/t/node-red-node-instagram-not-authenticating-invalid-client-id/18931 "2019-12-08T23:42:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chuank](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chuank/32/1288_2.png) [@chuank](https://discourse.nodered.org/u/chuank)\
**Post date:** [8 December 2019 23:42 UTC](https://discourse.nodered.org/t/node-red-node-instagram-not-authenticating-invalid-client-id/18931/1 "2019-12-08T23:42:40Z")

</div>

Hi everyone,

Since Instagram's API moved over to Facebook's [Instagram Basic Display API](https://developers.facebook.com/docs/instagram-basic-display-api), has anyone been able to get the `node-red-node-instagram` authentication to work?

I followed the [steps outlined here on FB](https://developers.facebook.com/docs/instagram-basic-display-api/getting-started) to initialize the test environment, making sure I got an Instagram App ID/secret, test user and callback url set up. All I get is the "Invalid Client ID" error when I try to authenticate in Node-RED:

`{"error_type": "OAuthException", "code": 400, "error_message": "Invalid Client ID"}`

Peeking into the authentication routines in instagram.js didn't seem to suggest anything amiss – the generated [authentication data](https://github.com/node-red/node-red-web-nodes/blob/8dacd3e416fd21e1cab0890eb448c35ca7d7acaf/instagram/instagram.js#L380-L409) seems to be as expected.

Short of spending more time modifying the instagram.js file, is anyone encountering this problem? Can someone try the node out please?

---

<div class="post-metadata">

**Author:** ![pietpoerrie](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@pietpoerrie](https://discourse.nodered.org/u/pietpoerrie)\
**Post date:** [26 March 2023 09:36 UTC](https://discourse.nodered.org/t/node-red-node-instagram-not-authenticating-invalid-client-id/18931/2 "2023-03-26T09:36:38Z")

</div>

Same here. Did anyone find a sollution for this?

Regards Pieter

---

<div class="post-metadata">

**Author:** ![chuank](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chuank/32/1288_2.png) [@chuank](https://discourse.nodered.org/u/chuank)\
**Post date:** [18 May 2023 00:07 UTC](https://discourse.nodered.org/t/node-red-node-instagram-not-authenticating-invalid-client-id/18931/3 "2023-05-18T00:07:53Z")

</div>

@pietpoerrie I've had to write my own authentication process. I'll put in a PR once I sort out the issues surrounding the renewal of the long-lived access token.
