instagram - get media from people you follow with private profile - instagram

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.

Related

Foursquare - Venue Claim

We're working on uploading businesses to Foursquare via the API option. We ran a test and have a question but first, here's some background on our situation:
We managed to get venues/add working however, we had issues with venues/claim.
When we attempted to claim a clinic which already existed on Foursquare,
we received the response code 403 and the following details:
{meta={code=403, errorType=not_authorized,
requestId=59416bb6db04f547b5e4b8a5, errorDetail=not authorized to
claim via api}, response={}, notifications=[{item={unreadCount=0},
type=notificationTray}]}
The API documentation indicates that the user performing this API call “Must be venue manager”. We don’t know whether our account is a venue manager and foursquare hasn't been too helpful in telling us if it is or isn't.
Can anyone please let us know how can we become a venue manager?
We are going to have approximately 2,000 locations uploaded via API and of that amount, we anticipate existing clinics to be a reoccurring theme so any insights in making this an efficient process would be greatly appreciated!
Venue claims are generally not available via API. Business owners will usually go through this page (https://foursquare.com/venue/claim) to claim their business.
If you're interested in claiming via API, please send us a note at api#foursquare.com!

Instagram API get followers list

I am using Instagram public API using the following endpoint but am only getting details of one follower in the response. Why is the API returning only one follower (that is part of sandbox users, none else)?
https://api.instagram.com/v1/users/self/followed-by?access_token=ACCESS_TOKEN where ACCESS_TOKEN is one I got from Instagram.
If your application is in sandbox mode, you can't access data of users other than listed in sandbox users.
As mentioned in API Behavior section of this documentation
Data is restricted to sandbox users and the 20 most recent media from each sandbox user.

Instagram API Tags Recent media not returning posts of private followers

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.

Are Instagram Real-time Updates limited to images that are public?

We are trying to do a "proof of concept" to leverage Instagram to promote customer loyalty. So for example, you upload a picture at our store with our #companyhashtag and you receive some added reward to your account.
I've gotten a tag subscription to work, I tested it with the company user uploading a picture and tagging it. The company user is public.
Then I tested it with my personal account, and it does not trigger an update. I tried the following to see if it would get Instagram to use my subscription callback with now success:
Requested to follow my private account from company account, and granted the "Follow"
Tagged the picture uploaded from my private account not only with the subscribed #tag but tagged the company user in the photo
I have read the Authentication documentation in the API, but I think it would be too much for what we are trying to achieve.
First of all I would like to confirm if the real-time subscriptions are limited to "public" state users.
If beyond that anyone has insights that might add depth to the question or answer, much appreciated.
I would go as far as to say yes, this would only work for public images.
say for instance your account is private so you only want to make your pictures available to people you've allowed. You then don't want some random API application to get hold of your images and then be able to serve them online where ever they want.

Get list or count of registered users for application

Using Instagram's API, is there any way to request a list or count of an application's registered users?
Instagram's real-time subscriptions can send notifications whenever a registered user posts to their feed, but I haven't found a way to get a list of those users, or even a count. This is easy enough to store server-side, but seems like something which should be discoverable.
Your Question
Using Instagram's API, is there any way to request a list of an application's registered users?
A quick search yielded no results for such a functionality. This make sense, though, since Instagram wouldn't want to open up all its users to any app designer.
Your App
If you want the number of users using your app, then you can easily track this yourself.
Instagram App
As mentioned before, Instagram probably won't provide even basic count information about its registered users. Presumably, this is valuable information.
Your Example
Instagram's real-time subscriptions can send notifications whenever a registered user posts to their feed...
This is true, but with very limited scope. The subscriptions below are based on users who are using your app or other simple criteria such as tags or geographic data.
Users: receive notifications when users who have registered with your application post new photos.
Tags: receive notifications when a new photo is tagged with tags of your choosing
Locations: receive notifications when new photos are posted and tagged with a specific location
Geographies: receive notifications when a new photos are posted in an arbitrary geographical location as defined by a center point
and radius
As far as I have found this far there is no IG API, however as already indicated you can keep track on your app. HOWEVER, what has not been pointed out is that you won't be made aware if users terminate their account or revoke your app so the count's might be a little off. (or worse if you didnt start keeping track since the public launch of your app)
You could test on a periodic basis if you still have access, but that would require additional code, and a lot of API calls if you app has a lot of users. I hope that IG will add this function at some point.

Resources