When you open the Instagram APP you can look at your news feed where you can see that someone is now following you, likes or has commented on a certain photo.
When I look at the Instagram API (http://instagram.com/developer/) I can retrieve likes and comments when I request a certain media ID. However in order to know if someone has commented on a photo of mine I would need to scan all the photo's and request it's comments to check if any new comments have been made.
Does anyone know of a better way? Help is appreciated.
You can use the Instagram Graph API to publish single images, videos, reels (i.e. single media posts), or posts containing multiple images and videos (carousel posts) on Instagram Business accounts.
The API can be used to get and publish their media, manage and reply to comments on their media, identify media where they have been @mentioned by other Instagram users, find hashtagged media, and get basic metadata and metrics about other Instagram Businesses and Creators.
Go to Dashboard, scroll down, locate the Instagram product, and click Set Up to add it to your app. Click Basic Display, scroll to the bottom of the page, then click Create New App. In the form that appears, complete each section using the guidelines below.
If it helps, content for "Following" tab is available at http://instagram.com/api/v1/news/, and "News" tab at http://instagram.com/api/v1/news/inbox/ (you need to be logged in to your account). All URLs point to internal instagram:// protocol so you would need to replace them when parsing and there seem to be no pagination options.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With