instagram-api

Instagram oAuth Authentication postMessage issue only with Mobile Browsers

▼魔方 西西 提交于 2019-12-06 08:02:47
问题 I have an Ionic 2 app ("native") that also runs on the browser for both mobile devices and desktop browsers. This app provides authentication via Instagram, Google, Facebook and Twitter. On the API side this is handled by hapi.js and the bell plugin. Now, I've been fighting an issue with Authentication on Instagram when doing it on a mobile browser. When this app runs on the browser instead of relying on the Ionic provided auth mechanisms we've implement our "browser" fallbacks to do it. We

No redirect to callback URL when authenticating to Instagram

ⅰ亾dé卋堺 提交于 2019-12-06 03:30:57
问题 I am having troubles with my server-side login flow to Instagram. I am using: passport.js (passport-instagram) in my Node.js server, at the domain example.com A simple WebView in my android client. The issue is that sometimes after typing the credentials the client is not redirected to the callback url. These are the URLs as seen from the client when everything is working: https://example.com/auth/instagram : user visits my server and is redirected to instagram https://api.instagram.com/oauth

Is there a way to remove force_classic_login parameter?

荒凉一梦 提交于 2019-12-06 00:27:06
When i request to sign in with my IG app, it automatically sends the user this weird login: And this URL is generated: " https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize%3Fclient_id ....." I've noticed that if i remove the parameter force_classic_login= it takes me to the new branded one: Does someone know how to control it from SDK ? thanks ! 来源: https://stackoverflow.com/questions/48966453/is-there-a-way-to-remove-force-classic-login-parameter

API Tags endpoint error - min_id is not a valid cursor for this tag

柔情痞子 提交于 2019-12-06 00:26:28
问题 Since a few days ago we've been getting an error response from Instagram API - it complains that we are using an invalid cursor 'min_id' when accessing the Tags endpoint. Thing is we don't use 'min_id'. We use 'min_tag_id', which according to the documentation (deprecated & current) is a valid cursor for this endpoint. Doing some research I see that some people have been getting unexpected errors too (though different ones) around this week. Example API request (plug an access token and paste

Instagram API /media/search maximum count parameter?

和自甴很熟 提交于 2019-12-05 22:44:40
When using Python to make a GET request to the Instagram API, passing the required variables as shown below photos = api.media_search(lat=latitude, lng=longitude, distance=distance, count=count) I have attempted to set the count parameter to over 100, but the API returns a maximum of 100 results. Is this a limitation set for the API or am I doing something wrong? The Instagram API documentation says there is a max value for count for each endpoint, from the docs : On views where pagination is present, we also support the "count" parameter. Simply set this to the number of items you'd like to

Fetching all user's pictures with the Instagram gem

删除回忆录丶 提交于 2019-12-05 21:21:21
I'd like to fetch all my pictures using the instagram gem ( https://github.com/Instagram/instagram-ruby-gem ) but I'm not able to find out how. This is what I'm trying so far: client = Instagram.client(access_token: token) client.user_recent_media.each do |media| puts media.images.thumbnail.url end It apparently works (those are my Instagram images) but I'm not able to fetch all of them or to select in any way which content I want from Instagram. For example I see that the method user_recent_media accepts a "count" attribute that should let me use some sort of pagination: (from https://github

Will Instagram serve square thumbnails for portrait/landscape images?

让人想犯罪 __ 提交于 2019-12-05 21:02:06
We have a custom Instagram integration in our site, the design for which assumes (and currently depends upon) the images it displays being square. Instagram announced today that they will support landscape and portrait photos. Is there a way to load only square images/thumbnails even if the Instagram image is portrait/landscape? There is a hack for getting square images that I am using: You take the thumbnail url which includes the correct cropping command and then replace the 150x150 with the size you actually want the image at. For example, an api response for a landscape image thumbnail:

Bug with Instagram API Login - This page could not be loaded

ⅰ亾dé卋堺 提交于 2019-12-05 18:37:17
问题 Since few days I have problems with the API instagram. Instagram sending this error page after the user has entered this login information. "This page could not be loaded. If you have cookies disabled in your browser, or you are browsing in private mode" Do you know why ? How to do ? Need help 回答1: I hate to be the bearer of bad news, but we also had this problem, which flagged on the Facebook Dev page: https://developers.facebook.com/support/bugs/406930029718049/ They have looked into the

Instagram Square photos API

假装没事ソ 提交于 2019-12-05 18:30:08
问题 Will Instagram provide any way to grab the portrait/landscape through the API ? API docs looks untouched. As of now, they still returns the square sizes for the portrait images, but the api documentation doesn't provide any way to get the original image. Will they keep returning the square images? Do Instagram have any comments about this? 回答1: Sept. 4th 2015 Update: As of Sept. 3rd 2015, instagram now allows API clients to get the images in their original aspect ratio (i.e. rectangular for

New Instagram API - Minimum timestamp disappears

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 16:40:14
I am planning to use the /media/search endpoint in the Instagram API. For our purposes we would need to use MIN_TIMESTAMP to get publications written after a certain timestamp. However, I have noticed that this parameter is available in the deprecated API, and it is not available in the new API: This is the endpoint in the deprecated API: https://www.instagram.com/developer/deprecated/endpoints/media/#get_media_search This is the endpoint in the new API: https://www.instagram.com/developer/endpoints/media/#get_media_search As you can see, MIN_TIMESTAMP and MAX_TIMESTAMP disappear from the new