From 29015eaaa1421778c1e0705a9577764465048ac1 Mon Sep 17 00:00:00 2001 From: Daniel <50470310+oppsec@users.noreply.github.com> Date: Tue, 18 Oct 2022 11:33:26 -0300 Subject: [PATCH] fix: changed UserID to Me in Instagram's API Hello, KeyHacks Team! Hope you're doing well! Reading Instagram's API documentation I noticed it's not necessary to pass the UserID we can use the Me parameter instead of Example: ``` curl -X GET \ 'https://graph.instagram.com/me?fields=id,username&access_token=IGQVJ...' ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index addb0a9..2c59e6e 100644 --- a/README.md +++ b/README.md @@ -611,7 +611,7 @@ curl -H "Authorization: Bearer " https://api.spotify.com/v1/me ## [Instagram Basic Display API Access Token](https://developers.facebook.com/docs/instagram-basic-display-api/getting-started) E.g.: IGQVJ... ``` -curl -X GET 'https://graph.instagram.com/{user-id}?fields=id,username&access_token={access-token}' +curl -X GET 'https://graph.instagram.com/me?fields=id,username&access_token={access-token}' ``` ## [Instagram Graph API Access Token](https://developers.facebook.com/docs/instagram-api/getting-started)