instagram

Is there a way to pull an instagram feed with PHP without logging in?

独自空忆成欢 提交于 2019-12-03 03:55:18
It seems that this solution no longer works - How to get a user's Instagram feed The new API requires an access token which is dynamically assigned after passing through a login page. Is there a way to still pull a feed programmatically through PHP without jumping through the new oauth hoops? This is useful for setting a crontab to automatically save new posts to a database. Yes you can. You don't need to login or access_token to get the latest 20 posts. You just need to parse the json content from https://www.instagram.com/[USERNAME]/media/ . Replace the [username] with the instagram user

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

旧街凉风 提交于 2019-12-03 03:35:12
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. Do everybody noticed the same issue? Thanks a lot for any feedback helping to solve the problem!

OAuth (Instagram) without refresh

六眼飞鱼酱① 提交于 2019-12-03 03:04:54
I have a single page javascript application, and I'm wondering if I can authenticate the user on Instagram without refreshing the page. I'd like to try to do something similar to the Facebook connect using javascript, where a Facebook dialog opens in a popup then calls a callback script after. Here's what I'm thinking it would do... On click, opens a dialog (popup) window where the user logs in to Instagram and the app is granted permission. In the popup window, the user is redirected back to my website where my website curls to Instagram to get the access_token, then sets the access token in

Instagram Invalid Response Error - 400

匿名 (未验证) 提交于 2019-12-03 02:41:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have the following code. params = {'client_id':settings.SOCIAL_AUTH_INSTAGRAM_KEY, 'client_secret':settings.SOCIAL_AUTH_INSTAGRAM_SECRET, 'aspect':'media', 'object':'tag', 'object_id':instance.hashtag, 'callback_url': 'http://subdomain.domain.net:8000/campaigns/hook'} response = requests.post('https://api.instagram.com/v1/subscriptions', data=params) And I get response '{"meta":{"error_type":"APISubscriptionError","code":400,"error_message":"Invalid response"}}' My domain is reachable from outside. Any ideas? 回答1: This was because

Caching Instagram API requests using PHP?

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Here's my current script that does the API calling: $client = "55447265ed444bb5b768ecb0765ba9cb"; $query = $_POST['q']; $clnum = mt_rand(1,3); $api = "https://api.instagram.com/v1/tags/".$query."/media/recent?client_id=".$client; function get_curl($url) { if(function_exists('curl_init')) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); $output = curl_exec($ch);

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

给你一囗甜甜゛ 提交于 2019-12-03 02:24:49
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 + ' status code: ' + str(r.status_code) print r return None info = json.loads(r.text) return info['user'] I

Instagram new logo css background

匿名 (未验证) 提交于 2019-12-03 02:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Recently, Instagram logo has changed as you all know. I need vector logo but it is not possible, I mean gradients. Is there any css code for new logo? 回答1: Here is the css code for background color: .instagram{ width:100px; height:100px; background: #f09433; background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366

Instagram: Get photos by user and tag

不想你离开。 提交于 2019-12-03 02:18:37
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? 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 MikroDel There is an opportunity how to do it: https://api.instagram.com/v1/tags/SEARCH_TAG/media/recent?client_id=CLIENT_ID&callback=MY_CALLBACK SEARCH_TAG - input CLIENT_ID - its your ID after registration MY_CALLBACK -

Oauth2 Instagram API “redirect URI does not match registered redirect URI”

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am working on a Rails application which is in development mode and it can register with omniauth. The host is http : //localhost:3000/ I'm using the gems: gem 'omniauth' gem 'omniauth-foursquare' gem 'omniauth-instagram' When I register through omniauth with Foursquare there's no problem at all. All the settings are right and my redirect_uri in the Foursquare developer settings equals to the host (localhost:3000) However, if I fill in the exact same redirect_uri (localhost:3000) in the Instagram client manager*. Instagram gives

Oauth2 Instagram API “redirect URI does not match registered redirect URI”

匿名 (未验证) 提交于 2019-12-03 01:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am working on a Rails application which is in development mode and it can register with omniauth. The host is http://localhost:3000/ I'm using the gems: gem 'omniauth' gem 'omniauth-foursquare' gem 'omniauth-instagram' When I register through omniauth with Foursquare there's no problem at all. All the settings are right and my redirect_uri in the Foursquare developer settings equals to the host (localhost:3000) However, if I fill in the exact same redirect_uri (localhost:3000) in the Instagram client manager*. Instagram gives me this: {