instagram

How to get access token from Instagram token using jQuery or php

被刻印的时光 ゝ 提交于 2019-12-06 08:39:32
问题 I am new to the Instagram API and am finding some issues tying to understand how to get an access token. What i have done is registered with instagram, created an application, and used the the client id and redirect url which when I post the following into a browser gives me a code=token https://api.instagram.com/oauth/authorize/?client_id=65c3052cc4494f87bc7f941b61b1f3f5&redirect_uri=http://www.chillwebdesign.co.uk/feedcube/instagram&response_type=code response http://www.chillwebdesigns.co

Instagram Get Access Token from Code in PHP

拟墨画扇 提交于 2019-12-06 08:22:50
问题 Following php code is not working for me to get access token In client id and secret key, i have replaced with my real client id and key. <?php $client_id = 'MY CLIENT ID'; $client_secret = 'MY CLIENT SECRET'; $redirect_uri = 'http://localhost/instagram/demo.php'; $scope = 'basic+likes+comments+relationships'; $url = "https://api.instagram.com/oauth/authorize?client_id=$client_id&redirect_uri=$redirect_uri&scope=$scope&response_type=code"; if(!isset($_GET['code'])) { echo '<a href="'.$url.'"

Using Instagram Graph Api with permanent page access token only works for some accounts

眉间皱痕 提交于 2019-12-06 07:28:36
问题 I try to fetch some images from an instagram business account through the instagram graph api by means of a permanent page access token (facebook: permanent Page Access Token?). These specific tokens seem to be the only possibility to get permanent access to the graph api for a server-side app . On the other side I found a hint in the fb documentation that only user accesss tokens can be used to access instagram business accounts. "Page access tokens are not supported." https://developers

Android share image on snapchat

我只是一个虾纸丫 提交于 2019-12-06 07:16:29
I'm using this code to share a screenshot of the score: Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("image/png"); Uri image = Uri.parse(Environment.getExternalStorageDirectory().toString() + "/sharescore.png"); try { // create bitmap screen capture View v1 = v.getRootView(); v1.setDrawingCacheEnabled(true); Bitmap bitmap = Bitmap.createBitmap(v1.getDrawingCache()); v1.setDrawingCacheEnabled(false); File imageFile = new File(image.getPath()); FileOutputStream outputStream = new FileOutputStream(imageFile); int quality = 100; bitmap.compress(Bitmap.CompressFormat

How to web scrape users who liked an instagram picture?

风流意气都作罢 提交于 2019-12-06 07:15:20
How would I go about gathering this kind of data from Instagram for a web scraping project, I tried myself to get it using beautifulsoup and requests true parsing the whole page: but it doesn't work import requests from bs4 import BeautifulSoup usrs=[] soup=BeautifulSoup(requests.get("https://www.instagram.com/p/Bziq7f2C-jM/").content,'html.parser') elem1=soup.find_all('div',class_="EtaWk") #elem1 contains all the usernames within it if elem1: elem2=elem1.find('ul',class_="XQXOT") if elem2: xelems=elem2.findAll('ul',class_="Mr508") for i in range(len(xelems)): lis=xelems[i].find('a',class_=

instagram api - cryptic response; not sure if working and unable to test omniauth with this

萝らか妹 提交于 2019-12-06 07:11:34
I am working on an rails app that has as the requirement logging in with omniuth to instagram. This would be my first time using instagrams OAuth endpoint and it is unclear whether it is working (and not clear to project manager either). I'm using their cURL implementation with the following (will reset it in future) but getting "No matching code found" error which would seem to be the logical first setp. curl \-F 'client_id=4658fa17d45244c88dd13c73949a57d7' \ -F 'client_secret=ae6cfe5d13544eada4dece2ec40ac5dc' \ -F 'grant_type=authorization_code' \ -F 'redirect_uri= http://seek-style

Instagram Graph API, get followers of followers

孤街浪徒 提交于 2019-12-06 06:14:24
问题 I'm trying to figure something out... As most of the 'old' API has been shut down, I've taken a look at the Graph API. I would like to retrieve the list of followers of a specific user. For the life of me I can't figure it out... is this really not possible anymore? The Business Discovery API is limited to only business accounts (as is the whole Graph API for now), but even that only seems to be able to retrieve the followers_count, not the actual followers. https://developers.facebook.com

React Native Instagram Explicit Authentication

安稳与你 提交于 2019-12-06 05:39:39
问题 I'm creating a react native app and adding instagram authentication to it. I want users to be able to "add" their instagram accounts to their main user account, so I have a "connect your instagram" button. I have this working on my web app fine.. The flow is as follows: User clicks 'connect instagram' button and a new window opens and is directed to https://instagram.com/oauth/authorize/?client_id=xxxx blah blah User authenticates and instagram redirects to my REDIRECT_URI with a CODE

Posting to Instagram via Script/Online/Program. Anything is good but mobile

邮差的信 提交于 2019-12-06 04:32:27
问题 I just wanted to know if there is a way to upload images to Instagram WITHOUT using iOS / Android? I'm really desperate for a solution, if I can't find anything I will have to run a virtual android device or something like that (I have a virtual machine running Windows XP 24/7 anyway)! 回答1: Instagram's official RESTful API does not allow for uploading photos, since they want to encourage "life on the go." However, some work has been put together to document their iPhone API, and some

Is there any way to get the foursquare venue id of a place given an Instagram location id?

怎甘沉沦 提交于 2019-12-06 03:43:12
问题 Instagram locations are selected from a list of foursquare venues, and it's definitely possible to search for Instagram locations given a foursquare venue id, but I have an Instagram post and would like to find the foursquare venue it corresponds to - is this possible? 来源: https://stackoverflow.com/questions/19283541/is-there-any-way-to-get-the-foursquare-venue-id-of-a-place-given-an-instagram-lo