I'm writing an application and trying to access Instagram API through Client ID. If I set up a tag for my application(#testTag) and users use that on their posts, will i get the videos and images from just public users or public and private both?
Using a client_id you will never get access to private medias by any of the API endpoints, just the public ones. (Tested)
You may test by tagging one of your photos and trying the Tags endpoint, then making your profile private temporarily and test again.
Using an access_token you can get tagged media from private users followed by the profile owning that access_token too.
Related
We have an approved app for public_content on Instagram's API. But would like to confirm expected behavior after the latest API changes.
Previously (prior 2016 API update), using a user authenticated token and this endpoint /tags/[tag-name]/media/recent, we could fetch all the posts with a given hashtags from public users as well as private users, given they were followers of the authenticated account. Meaning, if you could log into your IG account and see that user's media, than our app would be able to grab that media as well through the API using your authenticated user token.
Recently ( start of 2017? ), we started noticing that the returned media doesn't always include the private users that are your followers. We can still get all the public user hashtagged content, but the private user's content was hit or miss. And we can't seem to figure out any pattern or rule to it.
Has anyone else faced this issue? Does anyone know what the official stance is from Instagram as it relates to a private user's photos who follow a certain account, and your app has that account's authenticated token.
You can't get anything from private followers even if the user you're logged in as can see them from the client.
This was done because, in the past, some applications were getting the media from private followers via the API and saving them locally. Then, these applications were not properly protecting these private images from search engines and web crawlers. User's complained about their private images showing up on Google images and so, here we are.
You also can't see bio or the follower count of private users even if the user you've authenticated with can see them in the application. Basically, only the public-facing information about private users can be accessed with the API regardless of who you've authenticated with via the API. That means only the profile picture and username can be accessed.
The Instagram endpoint to get the list of recent media liked by the owner of the access_token only returns the public media liked by the owner. So if the owner liked a photo of someone they follow who has a private account, the API will not share this detail. Is there a scope issue or option I'm missing? Or is this simply an undocumented detail of the Instagram API?
No issues , Instagram API works like that, when some account is private it doesn't fetch media that belongs to private account.
I am using Instagram's User Endpoint in an attempt to retrieve media from people who I'm following.
I have a sandbox working with other members of my team, with each of us following the others.
I have authenticated myself through the server-side flow as indicated here and retrieved a list of ids of the people I follow (namely the members of my team) via the Relationship Endpoint.
In trying to get user media for those ids, however, I receive:
{"meta":{"error_type":"APINotAllowedError","code":400,"error_message":"you cannot view this resource"}}
Indicating an error because they have private profiles.
Is there anyway getting around this, seeing as I am actually an approved follower?
Thanks in advance.
With the updates to the Instagram API in November we can longer check if a user is private by calling the API with a Client Id. All calls require an access token so this solution is no longer viable Find out whether a user has a public or private profile on instagram using API?
I would like to be able to search for users but filter out private users or at the very least be able to tell if their account is private when using this call api.instagram.com/v1/users/search?q=jack&access_token=ACCESS-TOKEN.
I would also like to be able to search for tags and filter out the private media when using this call api.instagram.com/v1/tags/{tag-name}/media/recent?access_token=ACCESS-TOKEN
I have looked at all the endpoints and data that is returned and I can't see anything that would help me. I even tried using the oembed endpoint thinking that it wouldn't return an embed if the post was private but it still does.
I'm developing an app that gets photos from Flickr with Javascript. Photoset ID that shown in image is not public hence when i select the "don't sign call" option, API responses "error". I don't want make my Flickr photos public but i want call them from another page via API. I know that it's possible with "token". But token is required going "Login Page".
Can it is possible accessing non-public photos with my API Key?
Yes, your app can access your private photos. You will need to learn about Flickr's user authentication API, which uses the OAuth protocol. It's a little tricky to get started with, but there are third-party libraries to help with some of the work.