instagram

Instagram relationship (POST) api is not working in iOS app

安稳与你 提交于 2019-12-10 21:44:21
问题 I'm developing an iOS iPhone app using Instagram API, in which user allow to follow another user account using Instagram Relationship API and I'm always getting an error for this API request: API request: https://api.instagram.com/v1/users/157xxxx469/relationship?access_token=169527xxxx.f71bc56.fb2a414a0ee7469ca381a3659f5cxxxx Response Received: { "meta": { "error_type": "OAuthPermissionsException", "code": 400, "error_message": "This request requires scope=relationships, but this access

Instagram result codes

你说的曾经没有我的故事 提交于 2019-12-10 21:41:35
问题 Instagram allows you to share photos to the app via intent. Now you can define your own request code startActivityForResult(intent, YOUR_CODE_HERE) Now the problem arises when you retrieve the result codes from Instagram it only gives back 0 which is RESULT_CANCELED . Plus the moment you start firing your intent this result code is called regardless whether you closed Instagram or not. Is this the only available result code? RESULT_OK does not get called even if you post your image because

Instagram API - Retrieve Only Videos

倖福魔咒の 提交于 2019-12-10 21:32:11
问题 I need to retrieve ONLY videos tagged with a certain hashtag. I understand there isn't any way to retrieve only videos, but how could I parse through the JSON object I get back and only use the videos? I've been examining the array and I don't see any field that I could reliably use to determine if the result was a video or photo (ie, something like: ['type'] => 'image' would be really helpful, if it existed). To be fair, this is a huge array, and I could be missing something obvious. So: is

Instagram Api: Client is no longer active

谁说我不能喝 提交于 2019-12-10 20:54:45
问题 Yesterday, I was doing some test with Instagram API. I want to design a web page where I show the lastest photos in our account (Some like social feed). Today, I'm recieving this error: "The client used for authentication is no longer active.". Somebody knows if I did some wrong working with your API and How can I do to fix this problem. Best regards. Thanks. 回答1: I'm running into similar issues. Have not been able to successfully pull anything through the API for over 12 hours. Check out

PHP Instagram API - How to get MIN_TAG_ID and MAX_TAG_ID

守給你的承諾、 提交于 2019-12-10 20:51:32
问题 Guys I'm working around the Instagrams API to get all images with a specific tag. Here is my code: <?PHP function callInstagram($url) { $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => 2 )); $result = curl_exec($ch); curl_close($ch); return $result; } $tag = 'sweden'; $client_id = "XXXX"; $url = 'https://api.instagram.com/v1/tags/'.$tag.'/media/recent?client_id='.$client_id; $inst

How to avoid instagram error 429 The maximum number of requests per hour has been exceeded

自古美人都是妖i 提交于 2019-12-10 20:14:45
问题 I do an application which deletes comments on Instagram since Saturday 31st of October, I get this response when I use API to delete comments: {"error_type":"OAuthRateLimitException","code":429,"error_message":"The maximum number of requests per hour has been exceeded...."}}. I see that they did a modification one year ago for the limits of the number of requests, but I don't have this error during this execution since before the update. How to avoid it? Is it necessary to retrieve a new

Horizontal and Vertical RecyclerView under the same scroll

蓝咒 提交于 2019-12-10 20:04:36
问题 I have to do something like Instagram does. I have a horizontal RecyclerView for stories, and, below, a vertical RecyclerView for feed. I want to accomplish the same scroll behavior(the stories should go with feed at scroll, not stay on top as fixed). The only solution I found is NestedScrollView but it makes extremely bad performance for RecyclerViews, my screen freezes almost forever. I tried a lot of tricks found here like nestedScrollEnabled, autoLayoutMeasure etc. but nothing worked.

Generate access token Instagram API, without having to log in?

我们两清 提交于 2019-12-10 19:23:49
问题 So I am building a restaurant app and one of the features I want is to allow a user of the app to see photos from a particular restaurant's Instagram account. And I want a user to be able to see this without having to login to their Instagram account, so they shouldn't even need an Instagram account for this to work. So I have read this answer How can I get a user's media from Instagram without authenticating as a user? And I tried what it said and used the client_id(which I recieved when I

Upload media with Instagram API

对着背影说爱祢 提交于 2019-12-10 16:47:23
问题 Currently we are integrating Instragram with our platform and need a feature to automatically upload media (like youtube and facebook). We have gone thorugh the developer portal and found no documentation about media upload. I have googled for a while and no positive results. The below url(instagram offical API) lists the endpoint. It only has GET media related APIs https://www.instagram.com/developer/endpoints/media/ GET/media/media-id GET/media/shortcode/shortcode GET/media/search Question:

How does Instagram name files

拜拜、爱过 提交于 2019-12-10 16:24:19
问题 How does Instagram name files, are the file names random? based on some sort of hash? or is there some meaning to them? for example http://distilleryimage2.instagram.com/21a9ca729bf511e2985c22000a1f9ad3_7.jpg 回答1: Good answer - The blog post is out of date now as their naming has changed, but it's probably still based on MD5. 回答2: After further inspection, I think it's just an MD5 hash or something followed by _# for the image size 回答3: Instagram uses an MD5 hash as the base name, followed by