FAQ Database Discussion Community


Unable to like media in instagram from any access token

instagram,like,access-token,instagram-api
Since 3 or 4 days ago i'm not able to like any photos from any token, I think they blocked me to like. I still can follow/unfollow users via my application. I also can like photos via instagram iOS app. This is the error i have: "meta": { "error_type":"APINotAllowedError", "code":...

Display Instagram photos correctly in a CollectionView on all screen sizes

ios,swift,uicollectionview,instagram-api
This one has me perplexed. Ok, here we go. I'm pulling down IG images, they come in 3 sizes: 150x150, 306x306, 640x640 What I would like to do is display them 3 across, on all iPhone screen sizes (5,5S,6,6+). The 306x306 sizes come down super fast, and look great. So...

Check if a user is banned or account doesn't actually exist. Instagram, c#

c#,instagram,instagram-api
I am not using a API but I have been looking into the API like a mad man trying to find some relevance to it. I am opening the website and downloading all of it at the moment to see if it contains "Page Not Found" but banned accounts also...

Instagram: Not getting updated time

jquery,instagram,instagram-api
I am using instagram api and i am using below api:- https://api.instagram.com/v1/tags/{tag-name}/media/recent?access_token=ACCESS-TOKEN The output of instagram is as below:- { "data": [{ "type": "image", "users_in_photo": [], "filter": "Earlybird", "tags": ["snow"], "comments": { "data": [{ "created_time": "1296703540", "text": "Snow", "from": { "username": "emohatch", "username": "Dave", "id": "1242695" }, "id": "26589964" },...

instagram username search not match with query

instagram,instagram-api
I am calling instagram's API with this URL https://api.instagram.com/v1/users/search?q=mtv&count=1&client_id=add38d4ea81e4665962b939c96a929a3&count=1 It's supposed to respond with the username 'mtv' as specified in the q parameter, but the JSON response returns the username 'mtvbrasil' {"meta":{"code":200},"data":[{"username":"mtvbrasil","profile_picture":"https:\/\/instagramimages-a.akamaihd.net\/profiles\/profile_43768325_75sq_1380500869.jpg","id":"43768325","full_name":"MTV Brasil"}]} ...

Instagram public media API

ios,instagram,instagram-api
Does Instagram API policy allows to use https://instagram.com/{user-id}/media/ endpoint to fetch latests media from iOS app. We tried to use documented api.instagram.com/v1/users/{user-id}/media/recent but it requires access token. By investigating Instagram web app I discovered that it is using endpoint from first link for fetching user's data....

Instagram API: Get User's Info (on iOS)

xcode,oauth,instagram,instagram-api
My app is able to get the AccessToken after the user logs into Instagram, and Instagram calls back to my app. I now want to get the user's information, most importantly his/her username. All I have is the access token. I couldn't find a call that gives the current user's...

Where can you find the location-id for Instagram's API? Or using LAT LNG?

geolocation,instagram,instagram-api
Looking through Instagram's API documentation, you can pull photos based on a location-id, but as far as I can tell there's no instructions as to where you can find this id. Here's the relevant page on Instagram: https://instagram.com/developer/endpoints/locations/ If I just the LAT and LNG to get a geographic spot...

How do I search Instagram's api for emojis

web-applications,instagram,instagram-api
I'm trying to make a call like $url = 'https://api.instagram.com/v1/tags/'.$tag.'/media/recent?client_id='.$client_id; but where the $tag is I want to pass in an emoji in order to get results back for emojis. I've tried ..... $tag = 'U+1F601'; $tag = '\xF0\x9F\x98\x81'; $tag = '\x{1F601}'; Any help would be appreciated...

Instagram API error code 400 “No matching code found”

php,api,instagram,instagram-api
$config = array( 'client_id' => '****', 'client_secret' => '****', 'grant_type' => 'authorization_code', 'redirect_uri' => 'https://example.com/order/', 'code' => $code, ); Since about 5-6 hours I'm getting this message when trying to authenticate: {"code": 400, "error_type": "OAuthException", "error_message": "No matching code found."} Nothing has been change on the site and everything seems...

Instagram EndPoint URL with hastags min_tag and max_tag

instagram,endpoint,instagram-api
I've a url which gets the latest images posted in instagram with a hashtag, the problem with the url is if the images count are more than 20, it returns a max_tag_id, if i search with a hastag - #selfie, i get the max tag and main tag and the...

Instagram Auto Post or One touch share in IOS by third party app

ios,objective-c,image,instagram,instagram-api
In my app i have to share image with text on Instagram without opening the Instagram app. I want to share it on a single touch. I found this 2 year old thread How to share an image on Instagram in iOS?. But it's saying that we have to open...

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

ios,api,instagram,instagram-api
I am developing an iOS iPhone app using Instagram API, in which user allow to follow another user account using Instagram Relationship Api.But I am receiving below error all the time - Request api - 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 token is not authorized...

Debugging Python Instagram API client - 'NoneType' has no len()

python,debugging,instagram-api
newbie to Python here, so bear with me... I'm trying to use the Python client for Instagram API, and am entering a valid access token and user ID when passing the token into the InstagramAPI constructor (yes, I'm running the code with my access token and user ID inserted, but...

How to get ALL likes for a given media-id

instagram,instagram-api
I am trying to iterate over the user ID of each like for a given {media_id} https://api.instagram.com/v1/media/{media-id}/likes?access_token=ACCESS-TOKEN is returning something like this (a data array of approx 300 likes) { "data": [{ "username": "jack", "first_name": "Jack", "last_name": "Dorsey", "type": "user", "id": "66" }, { "username": "sammyjack", "first_name": "Sammy", "last_name": "Jack",...

Instagram api - timestamp for photos by hashtag

api,instagram,instagram-api
I have got this feed. https://api.instagram.com/v1/tags/.../media/recent?min_timestamp=1432429690&max_timestamp=1432429790&client_id=... But it still takes everything. So my question is, is there any option to get photos by hashtag by date?...

Instagram access_token returning BadRequest error

ruby,sinatra,instagram,instagram-api
I'm working with the Instagram gem and getting an unexpected bad request error when calling Instagram.user_recent_media. get '/api/photos' do client = Instagram.client(:access_token => session[:access_token]) puts 'access token: ' << session[:access_token].inspect id = params[:id] photos = Instagram.user_recent_media(id, {:max_id => params[:max_id]}) end It's throwing this error: Instagram::BadRequest - GET https://api.instagram.com/v1/users/35099128/media/recent.json?client_id=12345&max_id=: 400: you...

Instagram API Comments Created using Python (ERROR: AttributeError)

python,api,python-2.7,instagram,instagram-api
Hello I trying out Instagram API using python and I am new to it. Hope you guys could take a look at it & help me out. I am wondering how to collect the date & time from users that have commented for each media id. I have tried using...

Does Instagram have share button or not? [closed]

instagram,instagram-api
I have googled for several hours but I didn't find any article and documentation related to instagram shared button on the web. Does it have or not? Please help!!!

Add linebreak or newline in Instagram text from objective-c text

ios,objective-c,string,instagram-api,format-string
I'm using the Instagram API from Xcode but I can not insert a line break in text using \n. Can anyone help me adding a new line in the caption/comment on instagram text from XCode? NSString *repostText = [NSString stringWithFormat:@"#Repost %@ com #AppRepost.\r\n ・・・ \r\n", userNameStr]; ...

write the results of foreach loop to json with php

php,arrays,json,foreach,instagram-api
I am new to PHP and JSON, and am trying to write some data (that I grabbed from the Instagram API) to a json file. I know I've successfully decoded and grabbed the arrays from Instagram in a foreach() loop, because I can echo them out, but I can't seem...

Display Full Screen Image of Instagram Thumbnail

android,instagram,instagram-api
I am building my first Android App to download Images from Instagram API and up till now I am successful to achieve my first major task. Now I want to display full screen image of Thumbnail images received from Insta API but I am struggling to find the method/API Call....

Fetching all user's pictures with the Instagram gem

ruby-on-rails,ruby,instagram,instagram-api
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...

Why is my instagram api fetching data returning false instead of a json object?

php,json,wordpress,instagram,instagram-api
I'm trying to use the instagram api on a wordpress page. Given the following function to get the data, would anyone please point me why is my var_dump($results) return boolean false??? function fetchData($url){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 20); $result = curl_exec($ch); curl_close($ch); return...

Create NSURL using AssetPath

ios,objective-c,xcode,instagram-api
Using UIImagePickerController, I'm able to get the Asset Path for a Media like assets-library://asset/asset.MOV?id=2A2CE6C9-C178-4395-977B-E6F159BF6D5E&ext=MOV. NSURL *instagramURL = [NSURL URLWithString:[NSString stringWithFormat:@"instagram://library?AssetPath=%@&InstagramCaption=%@",[referenceURL absoluteString], strInstagramCaption]]; Now, I want to convert this Asset Path into NSURL to pass it into following code block : if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) { [[UIApplication sharedApplication]...

how to name keys as push values into php array

php,instagram-api
This is probably a simple question. In php I'm querying a database, then pushing values into an array, which I then push into a multidimensional array. But when I'm pushing those values into an array, how do I name the keys? I don't just want the default numbered keys, I...

X-Insta-Forwarded-For Error Instagram API using PHP cURL

javascript,php,curl,instagram,instagram-api
I'm trying to make a post to instagram using this api and the POST method of relationships. Here is the side-server code I'm using: <?php $url = "https://api.instagram.com/v1/users/<user>/relationship"; $ips= (isset($_SERVER['SERVER_ADDR'])) ? $_SERVER['SERVER_ADDR'] : gethostbyname(gethostname()); $signature = (hash_hmac('sha256', $ips, '<secret>', false)); $join = join('|', array($ips, $signature)); $headerData = array('Accept: application/json'); $headerData[]...

jQuery Combine Ajax Objects From Instagram API

jquery,ajax,instagram,instagram-api
I have 2 problems. My ultimate goal is to make a request to Instagram and filter the images by tag. Instagram doesn't allow for more than 33 images at a time so right now I have an ajax inside of another. The first request gets images and then checks if...

Instagram Filters RGBA Values

ios,actionscript-3,image-processing,air,instagram-api
I need to add image filters to an iOS app that is being developed using Adobe Air. To be more specific, i need to apply the following filters (or similar): Nashville Hemingway Jarques Cross Process Hazy Days You can use this page as a reference http://techslides.com/demos/canvas/instagram.html I know how to...

How do I get the number of Followers gained and lost during a selected time range from Instagram API?

instagram,instagram-api
I need to get number of Followers gained and lost or just the total followers during a selected time range. For example: if I send a request to: https://api.instagram.com/v1/users/3/ I will get this Json: { "data": { "username": "kevin", "bio": "CEO & Co-founder of Instagram", "website": "", "profile_picture": "https://instagramimages-a.akamaihd.net/profiles/profile_3_75sq_1325536697.jpg", "full_name":...

How can Instagram Media Id's be compared?

instagram-api
Here is an example of an Instagram Media Id: 908991138574797936_536823746 If there were two of these ids and I wanted to find out which one was greater than the other how would I go about doing that? Thanks!...

Get instagram access token using nodejs

javascript,node.js,instagram,instagram-api
I tried to get access token without using browser request (by http.get() request ) using instagram-node module but I cant able to receive access token anyone please give me a solution for without browser interaction. var express = require("express"); var app = express(); var http = require('http') var api =...

No tags return from tag_recent_media

python,instagram,instagram-api
Hello I'm playing with the python instagram API and I'm using this example: from instagram.client import InstagramAPI access_token = "YOUR_ACCESS_TOKEN" api = InstagramAPI(access_token=access_token) recent_media, next_ = api.tag_recent_media( count = 20, max_tag_id = '', tag_name = 'cats' ) ) for media in recent_media: print media.tags # attempt to get tags associated...

Instagram “You Cannot Like this Media” 400 status code

android,iphone,windows-phone-8,instagram,instagram-api
I am aware that the Instagram API was down a few hours ago, but it seems to be back up now. The problem is, when we post data to Instagram saying to like a specific photo, we get this error: {"meta":{"error_type":"APINotAllowedError","code":400,"error_message":"you cannot like this media"}} We have gotten this error...

Nodejs real time pull Stream Instagram photo via hashtag

javascript,node.js,instagram-api
Is there a way / node lib package that can do real time pull instagram photo via hashtag?

Get photos and likes with php via Instagram API

php,json,instagram,instagram-api
While using an Instagram client_id API request like here: https://api.instagram.com/v1/users/{user-id}/media/recent/?client_id=YOUR-CLIENT_ID I can actually SEE both the image url and like-count in the JSON response, but can't figure out how to extract both. I can only seem to extract the image itself like so: <?php if (!empty($_GET['user_id'])){ $user_id = ($_GET['user_id']); //...

How to retry a rake task if you get a Bad Gateway error response from a web source

ruby-on-rails,ruby,rake,instagram-api
I am trying to run a rake task to get all the data with a specific tag from Instagram, and then input some of the data into my server. The task runs just fine, except sometimes I'll get an error response. It's sort of random, so I think it just...

Rails Fetch record from instagram using cron job

ruby-on-rails,gem,instagram-api,cron-task
I am using instagram gem and I need to fetch users media from instagram using users instagram id. I already have instagram user id into users table. I have a few questions Does Instagram gem give any method which pass user id and fetch users media? How can I fetch...