instagram

Obtaining Instagram Access Token

谁都会走 提交于 2019-12-03 14:28:43
We have a client who has a simple Instagram feature on the site to pull photos by a certain tag. They just noticed it isn't working. Getting an error - invalid access token. I guess since the 1st because of the updates. We didn't used to need an access token since we're not doing anything with users - just tags. Now it looks like we need one and the documentation makes zero sense on how to obtain one. And it seems like they're not accepting most apps. The app is in sandbox mode too. So I'm assuming it's because it got switched to that? Got no notification of this happening. The first step in

Get a list of users who have liked a media -> not working anymore

浪尽此生 提交于 2019-12-03 13:27:21
问题 I realized, that since Sunday, 8th December 2013 the Instagram API do not return the correct count of users who has liked a media. Example: For a media with 500 likes the API returns a list with only about 120 users. Before Sunday everything works well and I do not have any notification from Instagram changing there policy on this topic. The official Instagram API Console returns the same amount of users like my app, and therefore I think the Instagram API has a bug or they changed the policy

ios iphone hooks open instagram directly without showing UIDocumentInteractionController

时光怂恿深爱的人放手 提交于 2019-12-03 12:56:14
I'm integrating sharing images through instagram in my app. I've read their documentation . It seems that I need to use the iOS UIDocumentInteractionController to allow this (I understand that it allows access to files in my app's sandbox). Digging deeper, I came across this library which makes things very straightforward. The problem I have with it is that it presents the action sheet (which only has one button - Instagram...) How can I use the instagram hooks , with the UIDocumentInteractionController without showing the action sheet. I came across this question which is pretty much the same

iOS - Send Image to Instagram - DocumentInteraction

那年仲夏 提交于 2019-12-03 12:41:07
Would it be possible to share a picture to Instagram bypassing the Action Share Sheet? Please Note that I am aware of the UIDocumentInteractionController and the hooks and in fact it works fine. With their sample code you get a Copy to Instagram option (either unique if you use the exclusive UTI or a big list of apps which can handle a JPG/PNG, alongside with Instagram). This works fine, but I'd like to know if there's a way to execute the action "Copy to Instagram" without the need to present the UIDocumentInteractionController menu in iOS 9+. For the record this is a simplified version of

Best Possible way to add instagram like layout guide with UIPinchGestureRecognizer UIRotationGestureRecognizer & UIPanGestureRecognizer?

一曲冷凌霜 提交于 2019-12-03 12:34:36
I have used UIPinchGestureRecognizer UIPanGestureRecognizer & UIRotationGestureRecognizer with UILabel to achieve instagram like zoom and drag functionality but now i would like to show layout guid like when UILabel is drag in center it will show layout guid like below example which is example of instagram. It will also display layout guid when you rotate UILabel What is the best and accurate possible way to achieve this functionality. This is What i have already done Here is code i have done for simple drag and zoom functionality. SnapGesture Class import UIKit /* usage: add gesture:

Instagram realtime get post from callback

我是研究僧i 提交于 2019-12-03 12:18:29
Right, this is really working on my nerves, but Instagram has to do something about their bloody documentation. I am already trying for a week to live update my website with new instagram posts without refreshing the page. Twitter was fairly easy, but instagram is just one big mess. Basically I use the realtime Instagram API, the callback and all that stuff is working fine, but thanks to Instagram it does not return me an ID from the post that is new, the callback only returns some basic stuff: [{"changed_aspect": "media", "object": "tag", "object_id": "nofilter", "time": 1391091743,

Instagram: Get photos by user and tag

此生再无相见时 提交于 2019-12-03 11:53:32
问题 Perusing the Instagram API I see it's pretty straightforward to search for photos by tag OR by username. However, I can't seem to find anything on searching by both. Is it possible to query the API and get only results of a specific tag from a specific user? 回答1: Your best bet is to do a lookup on a user and then sift through the results and get each picture with a certain tag 回答2: There is an opportunity how to do it: https://api.instagram.com/v1/tags/SEARCH_TAG/media/recent?client_id=CLIENT

How to get followers and following list in Instagram via http requests

余生颓废 提交于 2019-12-03 11:50:55
问题 I'm looking for a possibility to get a followers and following list in JSON format via web request (in the same way as on the Instagram web site). For example, I can login via requests, and get user info: def get_user_info(self, user_name): url = "https://www.instagram.com/" + user_name + "/?__a=1" try: r = requests.get(url) except requests.exceptions.ConnectionError: print 'Seems like dns lookup failed..' time.sleep(60) return None if r.status_code != 200: print 'User: ' + user_name + '

Instagram open UTI directly

我的未来我决定 提交于 2019-12-03 11:40:54
I recently stumbled upon the following interesting feature: Instagram iPhone Hooks I was wondering if one is able to open an app through the documentinteractioncontroller immediately, WITHOUT having to show a preview (– presentPreviewAnimated:) or an action sheet (– presentOpenInMenuFromRect:inView:animated:). Seems to me that it's the only way, but I might be missing something. -(void) saveToInstagram { NSURL *url; UIDocumentInteractionController *dic; CGRect rect = CGRectMake(0 ,0 , 0, 0); UIImage *i = imageView.image; CGRect cropRect = CGRectMake(i.size.width - 306 ,i.size.height - 306 ,

Instagram API error 500 UTF-8 hashtags with enforced signature

試著忘記壹切 提交于 2019-12-03 11:17:25
问题 I am receiving 500 error from a simple instagram GET request. My code works when the hashtag contains normal ascii characters, or when my app has the checkbox "Enforce signed requests" unchecked. But I cannot get anything to work when I try with a utf8 hashtag and signed requests enforced. I saw that signed requests will be mandatory soon, so I need it to work. I want to get all images for a tag like #über. public static String signRequest(String key, String data) throws Exception { Mac