instagram

Creating cache file from Instagram API Class

我的梦境 提交于 2019-12-11 19:41:20
问题 I'm working with Cosenary Instagram PHP API Classes to fetch photos from instagram and try to create cache file to improve speed. Below is the snippet but it doesn't worked. include('conf.php'); require 'bigflannel-instafeed/data/instagram.class.php'; // Initialize class $instagram = new Instagram($accessToken); $instagram->setAccessToken($accessToken); $contents = $instagram->getUserMedia($userID,$settings['count']); $cache = './instagram.json'; if(file_exists($cache) && filemtime($cache) >

Ajax call to Instagram (GET /media/search) timestamp issue

徘徊边缘 提交于 2019-12-11 19:05:46
问题 I'm Getting 400 bad request as a response: {"meta":{"error_type":"APIInvalidParametersError","code":400,"error_message":"invalid parameters-check the max\/min-timestamps, if you supplied them"}} while my request seem to be fine: https://api.instagram.com/v1/media/search?q=demonstration&lat=30.0444&lng=31.2357&distance=1000&min_timestamp=1383253200000&max_timestamp=1385758800000&access_token=9xxx4 specifying timestamps with a range of a month, is that an issue? P.S. Using JQuery 1.9.1 Thanks,

should i get a new access token for every user instagram

百般思念 提交于 2019-12-11 18:25:19
问题 I'm going to write an app that have more than 50 request for every user.should i get the access token for every user that Authenticated? and how to do it with java?i get the APIs with but how to get the access token? class GetRequestAsyncTask extends AsyncTask<String, String, String> { @Override protected String doInBackground(String... uri) { DefaultHttpClient http_client = new DefaultHttpClient(); HttpResponse response; String respondString; try { response = http_client.execute(new HttpGet

Displaying on-image instagram tags

拜拜、爱过 提交于 2019-12-11 18:03:15
问题 Can I display the on-image (tooltip type) tags created by users through the IG api on images? The basic tags/{tag-name} isn't the answer for specific on image tags. 回答1: Yes you can. The API returns users_in_photos in json response for any media that has user tags, it has user details and position of tagged location in photo: "users_in_photo": [{ "user": { "username": "kevin", "full_name": "Kevin S", "id": "3", "profile_picture": "..." }, "position": { "x": 0.315, "y": 0.9111 } }], multiply

Failed to load resource: the server responded with a status of 400 () while trying to login into Instagram through Selenium and Python

南笙酒味 提交于 2019-12-11 16:42:28
问题 I've been in the process of making an instagram bot for a few days now and I'm having trouble logging into instagram with a headless selenium browser. The script I made works perfectly fine when run on my laptop but when I try to run this on my digital ocean server, the browser will fill the login forms, then submit the form but nothing happens. I was able to print any console errors with this code: for entry in self.browser.get_log('browser'): print(str(entry)) and this error comes up {u

Get tagged photo without access token

安稳与你 提交于 2019-12-11 16:28:40
问题 I have some problem on this. Can I get public tagged photo from Instagram api without getting any code or access token? Please share any link for reading because I cannot found any. I feel it is less knowledge about Instagram api on web. Thanks! 回答1: You can pull public media by tag without authentication. Take a look at the API documentation for the get /tags/tag-name/media/recent endpoint. Here's the URL: http://instagram.com/developer/endpoints/tags/#get_tags_media_recent The documentation

How to use load more option with a non head web scraper [Instagram]

徘徊边缘 提交于 2019-12-11 15:47:28
问题 I am trying to download the location details from Instagram using URL scrape, but I am not able use Load more option to scrape more locations from the URLs. I appreciate suggestions on how to modify the code, or which new code block I need to use to get all the locations available in that particular url. Code: import re import requests import json import pandas as pd import numpy as np import csv from geopy.geocoders import Nominatim def Location_city(F_name): path="D:\\Everyday_around_world\

Instagram Subscription 408 Request Timeout after 2 seconds

人走茶凉 提交于 2019-12-11 15:45:56
问题 I am currently trying to create a 'sync with instagram' mechanism for the users of my MVC website using the instagram subscription feature. Now I have everything set up correctly like they are describing on their api page: I direct the user to their authorization page, getting the authorization successfully. I created a GET and a POST method for the callback method. The GET to test if it is there works with the described parameters (hub.mode=subscribe&hub.challenge=test&hub.verify_token

Importing user photos vs. Instagram platform API depreciation

a 夏天 提交于 2019-12-11 15:27:03
问题 I am co-creating app which have an option to import user photos from Instagram. Upcoming API depreciation log says that I can: read a user’s profile info and media until 2020. I want to be ready and make sure my platform will not stop working so here is my question: what does "media" means? Are those - among others - user photos? 回答1: what does "media" means? Media means everything related to your own user Instagram feed including media information such as likes and comments. So, as Instagram

Why is the Instagram Graph API webhook not working

China☆狼群 提交于 2019-12-11 14:59:25
问题 I am not able to get webhook calls when another user post a comment (with mentions) on another/my media. Just for testing purposes I set up a ngrok server for my webhook endpoint, which always answers with a 200 and handles the verfication. Before the heavy coding I just wanted to see if the webhook workflow for Instagram is generally working. I created a Facebook app, an Instagram business account, a Facebook page and linked the page with the Instagram business account. With the information