instagram

Instagram /v1/tags/{tag-name}/media/recent endpoint doesn't return min_tag_id in pagination block

本小妞迷上赌 提交于 2019-11-27 20:19:05
问题 According to https://www.instagram.com/developer/endpoints/tags/, we used to get the min_tag_id in the pagination part of the https://api.instagram.com/v1/tags/tag-name/media/recent?access_token=ACCESS-TOKEN response which we then used in the request to poll for newer posts. As of this morning, we saw that Instagram changed the form of the pagination response. It now looks something like: "pagination": { "next_max_tag_id": "AQBy529IMOAlOvp6EI5zrYZRZbUbNW2oGQjgdvfVi5I

Instagram login programmatically

夙愿已清 提交于 2019-11-27 20:17:49
I'm trying to programmatically login to Instagram via my own website because I want to retrieve direct messages from Instagram (this requires a login as it is not supported in the Instagram API (yet)). But the Instagram login page requires cookies to login. I keep getting the message that the page could not be loaded and that I might need to enable cookies. Is there any way possible to login programmatically via PHP to Instagram? This is what I have so far. $ch = curl_init('https://instagram.com/accounts/login/'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 1)

How to get a user's Instagram feed

十年热恋 提交于 2019-11-27 18:36:46
I'd like to get a user's Instagram feed using PHP. I've signed up for an Instagram Developer Account and tried pulling in a user's info and photos, but the response isn't stable. Sometimes I get a response and other times I keep getting the error: access_token is missing. Is there a solid example of getting a user's feed of photos by username? Ideally, I'd like it to be as simple as: $instagram = new Instagram(); $photos = $instagram->getPhotos("username-goes-here"); Where Instagram is a class that handles all the requests. Any help or direction is appreciated. Thanks! Try this, <?php function

How to get an Instagram Access Token

半城伤御伤魂 提交于 2019-11-27 16:55:39
I'm really struggling in how I'm meant to get my access token for Instagram, I've registered a new client and then I used this URL https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code to fill in the clients ID and redirect Url. I then was redirected to a page where it displayed a code in the Url but from there I don't have a clue where id then get my access token. Link to oficial API documentation is http://instagram.com/developer/authentication/ Longstory short - two steps: Get CODE Open https://api.instagram.com/oauth/authorize/?client

Instagram how to get my user id from username?

谁都会走 提交于 2019-11-27 16:49:11
I'm in the process of embedding my image feed in my website using JSON, the URL needs my user id so I can retrieve this feed. So, where can I find/get my user id? Very late answer but I think this is the best answer of this topic. Hope this is useful. You can get user info when a request is made with the url below: https://www.instagram.com/{username}/?__a=1 E.g: This url will get all information about a user who's username is therock https://www.instagram.com/therock/?__a=1 Update i June-20-2019, the API is public now. No authentication required. Update in December-11-2018, I needed to

Instagram ?__a=1 not working anymore

我只是一个虾纸丫 提交于 2019-11-27 16:17:43
问题 I've been using Instagram's undocumented API https://www.instagram.com/<user>/?__a=1 to get a public user feed on a website. Since a while now, this is not working anymore, probably because Facebook removed it. Is there an other way to get the data of an instagram account in a easy way? 回答1: I built a small server which does that transformation. You'll receive the instagram data as before with ?__a=1 (as JSON ) - have fun 😊 https://www.instapi.io/u/<username> https://www.instapi.io/u

Instagram API: do scopes work with OAuth2 implicit authentication flow?

可紊 提交于 2019-11-27 16:15:56
问题 I'm making requests against the Instagram API from a mobile app. Currently, I'm just directing the user to the Instagram auth url and specifying the response type to be "access_token". Specifying this response_type is known as implicit auth. Explicit auth: response_type=code Implicit auth: response_type=access_token I'm trying to get around needing to stand up a web service to facilitate explicit auth. This would be necessary because in explicit auth flow, the Instagram API needs to make a

Oauth2 Instagram API “redirect URI does not match registered redirect URI”

别说谁变了你拦得住时间么 提交于 2019-11-27 14:55:48
问题 I am working on a Rails application which is in development mode and it can register with omniauth. The host is http://localhost:3000/ I'm using the gems: gem 'omniauth' gem 'omniauth-foursquare' gem 'omniauth-instagram' When I register through omniauth with Foursquare there's no problem at all. All the settings are right and my redirect_uri in the Foursquare developer settings equals to the host (localhost:3000) However, if I fill in the exact same redirect_uri (localhost:3000) in the

Post UIImage to Instagram using Swift similar to SLComposeViewController

微笑、不失礼 提交于 2019-11-27 14:25:10
问题 I have an iOS Xcode 7 Swift 2 project I'm working on. The app posts photos to Facebook and Twitter using: var shareToFacebook: SLComposeViewController = SLComposeViewController(forServiceType: SLServiceTypeFacebook) and var shareToTwitter: SLComposeViewController = SLComposeViewController(forServiceType: SLServiceTypeTwitter) Love how easy and simple for just posting a photo to these two social medias. I didn't need or want the APIs for them. I want to do something similar and simple for

null.jpg being returned for carousel posts via Instagram API

百般思念 提交于 2019-11-27 13:59:49
问题 It looks like the Instagram API does not support the new Instagram carousel feature. The images results only contain https://instagramstatic-a.akamaihd.net/null.jpg and not the cover image. Any ideas how to retrieve these via the API? 回答1: UPDATE: Since last Monday (April 24) we are receiving posts of type "carousel" containing the property "carousel_media" with all the carousel images. Response example: https://jsonformatter.org/89e2fd We have the same problem from yesterday. We have added a