photos of people you follow instagram api - api

How can I get a feed of photos/videos from people I follow from the Instagram API? This seems like a pretty basic API feed that it appears to be missing. I see where I can get a list of the people I am following, but them am I supposed to make separate API calls for each of those user feeds and aggregate all of those together?
http://instagram.com/developer/endpoints/relationships/#get_users_follows
I'm wondering how a service like http://web.stagram.com/ does something like this. I'm assuming aggregation, but perhaps I am missing something in the API.

The /user/self/feed endpoint returns all videos and photos of the user associated with the given access token. See here: http://instagram.com/developer/endpoints/users/#get_users_feed
This is an example of using this endpoint: https://api.instagram.com/v1/users/self/feed?access_token=969629.f59def8.24f8add8d4d7475397ab09b361299665

The Instagram API does not support what you are attempting. You would need aggregate these yourself. Not sure if webstagram has special access or has to work around this as well.

Related

Instagram - Get Direct Message

I'm writting a new post, because all of topics that was related with getting Instagram Direct message via API are a little bit old.
Do anyone knows if there is a possibility of GET Direct Messages via API or in some programatically way?
Right now, it doesn't look like you can. The Instagram Graph API docs don't mention direct messages at all. The old Instagram API never had this.
Take a look to the Component InstagramApiSharp, it contains this functionnality. There are some actions that you can built for the direct message with it.

Are there any methods in Spotify API that can auto-correct search keywords?

I am planning to use the Spotify API to fetch some data, feeding track name and artist as search keywords. However, the track name and artist data I have some parsing errors, and I was wondering if there are any methods in Spotify API that auto-corrects the keywords.
For example, Google will fetch me documents about Radiohead even if I search for 'Radiohea','Radihead', and so. Also, the Last.fm API provides a method named 'track.getCorrection', which does jobs similar to those I explained above.
Here is the explanation of the method from the official Last.fm API website:
'Use the last.fm corrections data to check whether the supplied track has a correction to a canonical track.'
Does anyone know if such method exists in Spotify API?
No, there's no auto-correction engine. The closest Spotify gets to having a search engine is the search endpoint:
You can search, for instance, like this:
query = 'radio head'
and then
query_results = sp.search(q=query, type='playlist')
would return
...u'playlist'...{u'name': u'Air/Zero 7/Thievery Corp/Radio Head/Massive Attack/Morcheeba',...
but that requires that the playlist user spelled it wrong too. That is as far as a typo can get you, I'm afraid.
A workaround is fetching the artist using the last.fm API, use its auto-correction tool and then feed this result into Spotify API, either using artist, track or search endpoints.
I highly recommend you using more than one API for your app, as each one has its own limitations.

Facepile with graph api

I want to display the list of the user's friends who made an Open Graph action, like cooking. I can do this with Facepile, but how can I do this with the Graph API in order to control how it's displayed?
I can't find the corresponding Graph API call. Is there a simple way in order to avoid multiple Graph API calls?
Facebook should make api for that, but there is not way currently. I asked the technical support in facebook.com for that. They have a plan to implemente in FQL, but not yet.
So, facepile is only way until now. Check http://developers.facebook.com/docs/reference/plugins/facepile/ and check other type of codes like javascript SDK or iframe.

How to map Twitter directed-graph/topology?

For my research, I want to use some data that can capture twitter users following each other . I want to represent this relationship in a big directed-graph. If you think about this graph it's probably very huge, I want to generate it and perhaps store it in adjacency-matrix format.
However when I tried to make use of Twitter's API, there are some useful methods like GET followers, GET friends I can use. But it has 150query/hour limit. At that rate, I would never finish crawling Twitter and generate a good enough direct-graph.
Is there a better way of doing this?
I remember that one of my friends contact this research group and they provide her a dataset.
http://twitter.mpi-sws.org/
Maybe you should try to find a dataset instead. Try this SO question, the answers provide a few datasets of them.
Twitter Data Archive
Tribalytics-raw provides twitter followers and/or friends raw graph data as a service.
To comply with Twitter API's terms of service, only twitter users Ids are provided. You can extract the users metadata by yourself using twitter's users/lookup API endpoint, which is not so heavily rate-limited.
Full disclosure: I am the founder of this tool, and I have read this before posting

Google+ post or "+1" something using Google+ API

I see that Google started to offer some alpha API.
Is there any way to post something in Google+ using Google+ API? If not the same way as for Facebook and Facebook SDK, at least something similar.
I would like to implement it in a native iOS/Android code.
No. I expect that similar to how there is no way to implement a Like via an API, there will never be an API to allow sending a +1 via an API. It is expected and intended to only ever be done by direct action by a user, NOT something that can be manipulated by a programmer to artificially inflate their rankings.