instagram

Grabbing tagged instagram photos in real time

懵懂的女人 提交于 2019-12-23 07:49:53
问题 I'm trying to download photos posted with specific tag in real time. I found real time api pretty useless so I'm using long polling strategy. Below is pseudocode with comments of sublte bugs in it newMediaCount = getMediaCount(); delta = newMediaCount - mediaCount; if (delta > 0) { // if mediaCount changed by now, realDelta > delta, so realDelta - delta photos won't be grabbed and on next poll if mediaCount didn't change again realDelta - delta would be duplicated else ... // if photo posted

How to use Facebook Graph API to read Instagram user

半世苍凉 提交于 2019-12-23 07:33:35
问题 I tried to use Graph API Explorer to read an Instagram user. Visit https://developers.facebook.com/docs/graph-api/reference/instagram-user/ I ticked every permission to generate the access token. Also, I linked my Instagram account to Facebook account. However, response still showed as 'Unsupported get request'. graph api explorer output Anyone can help? Thanks. 回答1: Facebook has just released a new version of their graph API (v2.10) that now contains a new Instagram API that has new

Understanding min_tag_id and max_tag_id

[亡魂溺海] 提交于 2019-12-23 07:20:11
问题 tag_media_recent takes as max_id and min_id as parameters. The documentation says : MIN_ID Return media before this min_id. MAX_ID Return media after this max_id. I tried max_id = 3390883111979 (very large than what is currently used) It returns the newest tagged images. Doesn't it follow the definition of min_id? seems erraneous I also tried min_id = 1390922265529 and max_id = 1390922265528 . It returns 12 images. How is that possible when the max range given is 3? I also tried reversing the

Crash wen tapping “Open in Instagram” while using UIDocumentInteractionController

白昼怎懂夜的黑 提交于 2019-12-23 05:41:47
问题 I have got the following class: .h file : #import <Foundation/Foundation.h> @interface CHTInstagramSharer : NSObject<UIDocumentInteractionControllerDelegate> @property (nonatomic, retain) UIDocumentInteractionController *dic; -(void) sharePic:(UIImage *)image; @end .m file #import "CHTInstagramSharer.h" #import <UIKit/UIKit.h> #import "BaseController.h" @implementation CHTInstagramSharer -(void) sharePic:(UIImage *)image{ NSString * jpgPath = [Utils saveImage:image toFile:@"cover.igo"]; NSURL

I can't login to Instagram with Requests

雨燕双飞 提交于 2019-12-23 05:37:15
问题 I've been trying to login to Instagram using the Requests library but I can't get it to work. The connection always get refused. import requests #Creating URL, usr/pass and user agent variables BASE_URL = 'https://www.instagram.com/' LOGIN_URL = BASE_URL + 'accounts/login/ajax/' USERNAME = '******' PASSWD = '******' USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)\ Chrome/59.0.3071.115 Safari/537.36' #Setting some headers and refers session = requests

Endpoint /tags/tag/media/recent is not showing all related posts

天涯浪子 提交于 2019-12-23 05:14:18
问题 I am using the tag-Endpoint without OAuth to get all posts containing the Hasthag "#hierfuereuch". It works and returns nearly all matching posts, except some of the posts from the account http://instagram.com/antenne1de . This is also the account the client-id is registered to. This is the API-Call I am doing via PHP: https://api.instagram.com/v1/tags/hierfuereuch/media/recent?client_id=XXXXXXXXXXXXXX This post is in the result-list: http://instagram.com/p/j8JTepLcS-/ But this post is not:

XMLHttpRequest cannot load for instagram like

泪湿孤枕 提交于 2019-12-23 04:35:55
问题 I want to call this link for the like on instagram, I am using following code but it is not working. Following error comes, please help me how I call this url from local host and server also. var likeurl = "https://api.instagram.com/v1/media/" + idslist[1] + "/likes?ACCESS_TOKEN=" + accesstoken; Nextin_downloadData(likeurl); $.ajax({ url: likeurl, type: 'POST', data: { }, success: function (result) { alert("out" + result); }, error: function () { alert("error"); } }); Error : XMLHttpRequest

Pagination info missing in instagram api

给你一囗甜甜゛ 提交于 2019-12-23 04:23:01
问题 I am using the most popular api via instagram api In the document, it saying something about pagination and next_url but when I use the link below with my app ID. I don't see any pagination info in the json. Am i missing something? https://api.instagram.com/v1/media/popular?client_id=CLIENT-ID or https://api.instagram.com/v1/media/popular?client_id=CLIENT-ID&count=10 回答1: you should get the pagination info back in a an object callged "pagination" "pagination": { "next_max_tag_id":

Instagram feed not returning any data

被刻印的时光 ゝ 提交于 2019-12-23 03:23:34
问题 I'm using Instafeed.js for a client's site: http://instafeedjs.com/ I've included the script, got my access token & userID. I obtained these by scrolling down to the 'Getting images from your User Account' section of the aforementioned page, and clicking the link at bottom: Don't know your user id or token? Click here to get one. My code: $(document).ready(function() { var userFeed = new Instafeed({ get: 'user', userId: clientsID, accessToken: 'MY_ACCESS_TOKEN', template: '<a href="{{link}}">

Moving selected images using ajax in php

烂漫一生 提交于 2019-12-23 01:52:19
问题 I am using an API (php) provided by Instagram to import user's images to my webpage. It is working perfectly. But I want to add one functionality to it of moving selected images to user's folder (or anywhere). I thought it doing the post method but as the OAuth code is working only once this will not help. So I decided to do it with ajax... but still no success... Please help me solve this. I am pasting my index.php and success.php below. index.php <?php require 'instagram.class.php'; //