How to get direct url from insta share url

I am making a Telegram bonus which is picked from the user's Instagram share url and navigated to the user's photo or video from that link. I have a media_id and a photo from this API

https://api.instagram.com/oembed?url=http://instagr.am/p/fA9uwTtkSN/

But when I want to get the direct video url using the media id below API

https://api.instagram.com/v1/media/ {media-id}? access_token = ACCESS-TOKEN

I am getting Error that the media id is invalid. I think this is because my access token is in sandbox mode I don't want to use an access token for users. I just want to use a direct url url.

What should I know?

Instagram

+3


source to share


1 answer


Just add /media/

to the url:

before: http://instagr.am/p/fA9uwTtkSN/



after: http://instagr.am/p/fA9uwTtkSN/media/

+1


source







All Articles