instagram

Android share image on snapchat

时光毁灭记忆、已成空白 提交于 2019-12-10 11:17:35
问题 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

How to web scrape users who liked an instagram picture?

筅森魡賤 提交于 2019-12-10 10:33:36
问题 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:

Is there a way to remove force_classic_login parameter?

元气小坏坏 提交于 2019-12-10 10:05:04
问题 When i request to sign in with my IG app, it automatically sends the user this weird login: And this URL is generated: "https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize%3Fclient_id....." I've noticed that if i remove the parameter force_classic_login= it takes me to the new branded one: Does someone know how to control it from SDK ? thanks ! 来源: https://stackoverflow.com/questions/48966453/is-there-a-way-to-remove-force-classic-login-parameter

Instagram API count limits using HTTP header

两盒软妹~` 提交于 2019-12-10 09:40:28
问题 According to Instagram you can check API limit count remaining using the HTTP headers that they supply with the call. I am quite new to this and am unable to find relevant data on how to access this information with PHP. Could anyone please clarify this for me? I found the following from the Instagram API developers forum on Google Groups: "We just rolled this out to production; all API calls now have the additional HTTP headers: X-Ratelimit-Limit (total # of possible calls per hour) X

Error 400: Bad request while fetching json data from instagram api via coldfusion

白昼怎懂夜的黑 提交于 2019-12-10 09:25:59
问题 Afraid to ask this question as I'm not able to create a jsfiddle for it, but hope someone will be able help. I'm trying to create a cfc in ColdFusion for an instagram login. That part is done. I'm using postman (google app) and by my credentials I can see the user's data in json, but when I'm converting this into ColdFusion it's giving an error. I tried to change the data-type, header and a lot of lines but am still getting the same error again and again. My code (replaced ids with xxx for

Post To Instagram screen on iOS Swift

半腔热情 提交于 2019-12-10 09:24:53
问题 I am trying to make sharing from my app to Instagram easy. And what I want is to get to the screen that is depicted on the screenshot below. I've tried instagram-stories://share deeplink and I've read thorugh all these docs: https://developers.facebook.com/docs/instagram/sharing-to-stories/ However, whatever I do, when the url scheme action fires it goes directly into sharing the image into the story. What am I missing here? Here is my code excerpt: if let image = image { guard let urlScheme

Accessing public Instagram content via Instagram API without expiring accesstoken

柔情痞子 提交于 2019-12-10 04:55:02
问题 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? :) 回答1: I have one idea, but without API (and access_token ). You

Get the local file path of a PHAsset

泪湿孤枕 提交于 2019-12-10 00:47:59
问题 I have a photo I want my user to be able to share on Instagram and I need to get the local file directory of the photo. However I am fetching my images as a PHAsset (not the ALAsset all the other answers seem to cover on this subject). Looking at the PHAsset documentation I don't see a 'local directory' variable. Do you know how I can get the path to a photo from the users camera roll using the new ios8 Photo's framework? Here is my code for loading the last image in the users photo roll

Instagram Mention API - not able to retrieve media details in DEV mode

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 00:05:18
问题 Since the existing instagram APIs are deprecated, I am switching to the graph api. Below is what i want to achieve and what the issue is. Requirement. I would like to track the number of likes and comments on instagram posts in which my business account is mentioned using @. I have setup the faccebook and instagram accounts along with the webhook. The webhook is going to send me the "mediaid" in which i my business account is tagged. Since the app is in the development mode i am not receiving

Using min_id and max_id with (new) instagram users endpoint

十年热恋 提交于 2019-12-09 21:33:50
问题 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