instagram-api

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

Instagram access token expiry time

烂漫一生 提交于 2019-12-11 14:33:15
问题 I am using Instagram token for login. After login, I am getting token also, but that token is not permanent. It will expire after some times. What should we do after token is expired; or how can we know that token will got expired? 回答1: Use the Access Token Debugger found here: https://developers.facebook.com/tools/debug/accesstoken/ Enter your User Access Token and click "Debug". At the bottom, there is a button labeled "Extend Access Token". That will convert your short-lived token to a

The captcha solution was not correct. Please try again

ぃ、小莉子 提交于 2019-12-11 13:23:41
问题 I'm trying to use login form that contains Oauth2 feature to login the user with instagram. For this purpose I'm trying to create new Client id in instagram developer page but here are the problems I'm facing: The captcha solution was not correct. Please try again Submission error: please fill out all required fields. although I 'v no captcha in the form of creating new client ID and I'v filled out all the fields. Second thing I want to know: Can I use localhost for website URLS and the

Instagram API - get ALL users for specific hashtag or location

感情迁移 提交于 2019-12-11 13:23:26
问题 I've started looking into the Instagram API and I want to pull out ALL users that have used a specific hashtag or have been at a given location. As the documentation says I can get the RECENT users for a hashtag and location using the following methods: https://api.instagram.com/v1/tags/{tag}/media/recent?access_token={token} https://api.instagram.com/v1/media/search?lat={latitude}&lng={longitude}&access_token={token} I am getting the recent (up to 7 minutes old) data with these. My question

Get `max_id` of of specific Instagram Story Poll Voters

此生再无相见时 提交于 2019-12-11 12:03:30
问题 I know that I can receive the Story data and the Poll voters data using getStoryPollVoters() which takes the following parameters: * @param string $storyId The story media item's ID in Instagram's internal format (ie "1542304813904481224_6112344004"). * @param string $pollId The poll ID in Instagram's internal format (ie "17956159684032257"). * @param int $votingOption Value that represents the voting option of the voter. 0 for the first option, 1 for the second option. * @param string|null

How can I find out if user has actually uploaded photo to instagram?

喜你入骨 提交于 2019-12-11 08:30:20
问题 My mobile app will post photos to instagram via the mobile sharing. I would like to know if the user actually uploaded the photo in the instagram app. And if he/she did - how can I get an id of an uploaded photo? 回答1: Get that users recent photos using API and then compare the created_time of the most recent photo and then find a match for the image. 回答2: You can use the Real Time Photo Updates service. You can receive a notification to your backend when a new photo is uploaded. 来源: https:/

How to make api call to Instagram with axios without CORS error

谁都会走 提交于 2019-12-11 07:06:43
问题 componentDidMount() { let token = this.getAccessToken('access_token'); let config = { headers: { 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', Accept: 'application/json' } } if (token) { axios.get('https://api.instagram.com/v1/users/self/?access_token=' + token, config) .then(res => { console.log(res) }) .catch(err => { console.log(err) }) } Trying to make an call to Instagram's API but I keep getting this error: I'm using React. Any help would be great. 回答1: I don't

How to get Instagram access_token using OAuth2Swift

与世无争的帅哥 提交于 2019-12-11 05:41:04
问题 I tried every possible option, but the redirect URI does not return the access_token . I added a call back URI, I am able to ask from the user to login and give access permission, but I get this error on the call back. I registered this URI on the Dev portal, and it seems to work fine: http://oauthswift.herokuapp.com/callback/instagram When I try to authenticate on a web browser using: https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=http://oauthswift.herokuapp.com

Logstash input plugin for Instagram Streaming API

拥有回忆 提交于 2019-12-11 04:46:59
问题 I want to read events from the Instagram. I was wondering if I can do it using Logstash similar to reading events from Twitter using Twitter input plugin, but there is no input plugin for Instagram. Is there any other way to collect Instagram data using Logstash? Thanks! 回答1: Instagram has an API so you can definitely attempt something with the http_poller plugin. Something like this: input { http_poller { urls => { search => { method => get url => "https://api.instagram.com/v1/media/search