how to get direct URL from insta share url

Viewed 2574

I am making a Telegram Bot witch take from user share URL Link from Instagram and pass to user photo or video of that link. I have got media_id and photo from this Instagram API

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

But when I want to get direct URL of video by media id with below API

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

I get Error that media id is invalid I think this is because my access token is in sandbox mode I do not want to take access token of users I just want to take direct URL of the share URL

what should I do know ?

instagram

1 Answers
Related