instagram

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

instagram api OAuthPermissionsException live mode

馋奶兔 提交于 2019-12-06 03:27:42
问题 I'm having an issues with the new API policy of Instagram I already got my app approved and got basic permissions IG API Permissions When using the app on sandbox mode I can get API response only for my own user, however when I move to Live Mode and try using the API all I receive is error 400 code For example https://api.instagram.com/v1/users/search?access_token=MY-TOKEN&count=6&q=world Response { meta: { error_type: "OAuthPermissionsException", code: 400, error_message: "This client has

Instagram API real-time limit

佐手、 提交于 2019-12-06 02:49:07
问题 We would like to monitor a large area through the real-time API on Instagram. But unfortunately we quickly hit the max. 30 subscriptions roof. This will limit us to a 30 x 5 km radius area to monitor. Any thoughts on how to monitor larger areas or have you heard of people getting a higher rate limit? 回答1: To monitor larger area, you can try to subscribe to location, instead of geography which is based on geolocation coordinates. Steps could be as following: easiest way to get the location, is

Getting “APINotAllowedError” when requesting medias on a private profil, even with all scopes allowed

耗尽温柔 提交于 2019-12-06 02:38:40
I'm using the PHP Instagram API https://github.com/cosenary/Instagram-PHP-API I would like to retrieve the feed of a user, even if he has a private profil. First, I'm generating the url with all the scopes granted $instagram->getLoginUrl(array('basic','likes', 'relationships', 'comments')); Then, once the user approved the application, I try to retrieve his feed // Grab OAuth callback code $code = $_GET['code']; $data = $instagram->getOAuthToken($code); // Set token $instagram->setAccessToken($data->access_token); // get medias $medias = $instagram->getUserMedia($data->user->id, -1); I get an

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

Instagram API count limits using HTTP header

旧巷老猫 提交于 2019-12-05 21:02:42
According to Instagram you can check API limit count remaining using the HTTP headers that they supply with the call. I am quite new to this and am unable to find relevant data on how to access this information with PHP. Could anyone please clarify this for me? I found the following from the Instagram API developers forum on Google Groups: "We just rolled this out to production; all API calls now have the additional HTTP headers: X-Ratelimit-Limit (total # of possible calls per hour) X-Ratelimit-Remaining (how many calls are left for this particular token or client ID)" If you're using file

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: