instagram-api

Instagram API: Can i check if user is verified?

做~自己de王妃 提交于 2019-12-05 13:06:50
I would like to know if there is any way to check if the user verification badge with the Instagram API? I have saw that https://api.instagram.com/v1/users/ {user-id} doesn't returns if the user is verified, but if you view the source code of a users page, you can see that it has a boolean that called isVerified key and it's value inside a json struct of the user. Thanks! Ok, this is not a great answer but here is how I accomplished this same task. Once I have a username from the API I do the following regex on the source of their profile page: $response = file_get_contents('https://instagram

oAuth Instagram login

江枫思渺然 提交于 2019-12-05 10:11:59
I am trying to get access token from Instagram using oAuth 2, to use it in scopes. I couldn't understand how should I configure "redirect_uri" (tried a lot of combinations) if I use it in native app, it means I don't need any websites to have redirected, I need redirect to app itself, after logged in. (Maybe I explained something not correctly, because don't understand how redirect_uri works in native apps) In AppDelegate.swift added: func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool { if (url.host == "oauth-callback") { OAuthSwift.handleOpenURL

Sorry, an error occurs from Instagram API: This endpoint has been retired [duplicate]

我是研究僧i 提交于 2019-12-05 06:54:18
This question already exists : Instagram/Facebook deprecating many APIs [duplicate] Closed last year . i am using wordpress site with the grid plugin, yesterday the plugin work great, i added new access token, today it start showing me this error "Sorry, an error occurs from Instagram API: This endpoint has been retired " One more sudden change from Insatagram, few endpoints are deprecated immediately, It's effective from 4th April. here is list of endpoints are 1) Follows and Relationships 2) Commenting on Public Content 3) Likes 4) User Search Please see more details here There is also some

Accessing public Instagram content via Instagram API without expiring accesstoken

痞子三分冷 提交于 2019-12-05 06:12:26
i want to show public contents from instagram related to a specific hashtag (everything works fine with that) but i can't to renew the access_token everytime it expires. ("do not assume your access_token is valid forever." - https://www.instagram.com/developer/authentication/ ) To renew it manually is not an option i have to make sure there is a valid access_token at ANY time without re-authenticating. Any ideas or questions? :) I have one idea, but without API (and access_token ). You can make requests to the web-version of Instagram with ?__a=1 parameter. I do not know how long it will work

Instagram Real time updates tag - callback called twice?

旧巷老猫 提交于 2019-12-05 02:13:10
I am using instagram real time updates for tag, to get notification when someone tag media with specific tag. Subscription works fine, and im able to check subscription directly using https://api.instagram.com/v1/subscriptions?client_secret= {cs}&client_id={cid} Within callback i have something like if (isset ($_GET['hub_challenge'])){ echo $_GET['hub_challenge']; } else{ $my_string = file_get_contents('php://input'); $sub_update = json_decode($my_string); //do the rest of the things with data we fetched } } But, this callback is executed twice from instagram side. So for example, if i

Instagram graph api media posts between dates

风格不统一 提交于 2019-12-05 00:13:06
问题 I'm trying to retrieve last month's media posts from an Instagram Business profile I manage, by using 'since' and 'until' , but it doesn't seem to work properly as the API returns posts which are out of the time range I selected. I'm using the following string to call the API: business_profile_id/media?fields=timestamp&since=2018-04-01&until=2018-04-30 while the Python snippet would be this (using the same init script from the facebook-python-sdk) import facebook graph = facebook.GraphAPI

Instagram Oauth2 implicit authentication redirect to page unavailable if you introduce bad password

岁酱吖の 提交于 2019-12-04 16:15:11
I am using the oauth2 Instagram implicit flow to do login in Instagram, the base url that I am using is this: https://api.instagram.com/oauth/authorize/?client_id=MY_CLIENT_ID&redirect_uri=http://example.com/oauth_redirect.html&response_type=token This url show me the Instagram login page, I introduce user and password and if they are correct the API redirects me to the redirect_uri, but when I introduce a bad user or password it redirects me to this unavailable page in Instagram: https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize/%3Fclient_id%MY_CLIENT_ID

Using min_id and max_id with (new) instagram users endpoint

时间秒杀一切 提交于 2019-12-04 15:39:22
In their documentation for their new API, Instagram says this : Relevant points: MIN_ID: Return media later than this min_id MAX_ID: Return media earlier than this max_id I want to search for media that a user posted within a certain date range. Is that possible using min_id and max_id ? Or did they completely remove the ability to filter by timestamp from this new api? 来源: https://stackoverflow.com/questions/37777770/using-min-id-and-max-id-with-new-instagram-users-endpoint

Embed Instagram feed to website sidebar [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-04 14:38:49
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 7 months ago . i am trying to integrate Instagram feed of client to website sidebar . I googled and did some research .I didn't find direct way to integrate feeds . I went through third party app like Snapwidget . Its pretty good but problem with that is that when i click on the feed displayed on sidebar widget provided by it , it redirect to its own site's page which contain my

Instagram/feed API media URL shows 'URL signature expired'

試著忘記壹切 提交于 2019-12-04 09:58:55
问题 I am using Instagram feed API to show my Instagram posts on my Website. But some video URL shows ' URL signature expired '. Any solution for me ? 回答1: Instagram has added URL signatures to their media URLs. You can easily remove the URL signature using this regular expression: "vp.*/.{32}/.{8}/" For example in PHP: preg_replace('/vp.*\/.{32}\/.{8}\//', '', $mediaUrl) On the other hand, I don't think that removing the URL signature is the best solution (is just a quick fix). The good one is to