Created
July 29, 2021 10:01
-
-
Save bibhuticoder/5bf98c2c1aaca59f431569bf1b114b77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
let resp = await axios.get(`https://graph.instagram.com/access_token?grant_type=ig_exchange_token&client_secret=${process.env.INSTA_APP_SECRET}&access_token=${accessToken}`) | |
accessToken = resp.data.access_token; | |
// save accessToken to Database | |
} catch (e) { | |
console.log("Error=====", e.data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment