Relative Content

Tag Archive for iosswiftinstagram-apiinstagram-graph-apiinstagram-reels

How to get media of Instagram public account posts with access token(short/long lived access token)?

I am creating an iOS app to download Instagram posts (Reels, Stories, Image, Album). I have successfully integrated Instagram Basic Display API and have registered a test user in the registered app in Facebook developer site. I also have fetched the access token from authorization window (Instagram login window using WebViewController) and I have also exchanged it with long lived access token which stays valid for nearly 60 days. Now I’m only able to get the data(post, album, video) of the registered user (test user or let’s just say my account) using Instagram Graph API. What I want is to download other public account's reels, post, story (for example: https://www.instagram.com/reel/C9NLCNLpFNs/?utm_source=ig_web_button_share_sheet&igsh=ZDNlZDc0MzIxNw==) using the long lived access token which I have. I have spent countless hours browsing the web to find the solution and yet I have failed miserably. I could not find the relevant documentation on developer.facebok.com, also. There are apps though, literally 20ish which offer the functionality that I am in search for. For example, InstantSave, InReels, InSaver to name a few. How do they do it!!