instagram-api

How to get other pages followers count number in Instagram?

烈酒焚心 提交于 2019-12-04 07:54:21
问题 is there possibility to get other pages follower count number in Instagram? I can get only my profile followers count number, but I want to get other followers too? (for example in php) Any ideas? 回答1: Yes, it's possible with ?__a=1 queries which return json. $otherPage = 'nasa'; $response = file_get_contents("https://www.instagram.com/$otherPage/?__a=1"); if ($response !== false) { $data = json_decode($response, true); if ($data !== null) { $follows = $data['graphql']['user']['edge_follow'][

Get images within same size in php

二次信任 提交于 2019-12-04 07:19:06
问题 I created a application for get Instagram tags images as a output. I can load the images. But I need to get images within same size. Anyone help me to solve this? Here is the code... <?php function scrape_insta_hash($tag) { $insta_source = file_get_contents('https://www.instagram.com/explore/tags/'.$tag.'/'); $shards = explode('window._sharedData = ', $insta_source); $insta_json = explode(';</script>', $shards[1]); $insta_array = json_decode($insta_json[0], TRUE); return $insta_array; } $tag

White video when opening AVMutableComposition in Instagram

若如初见. 提交于 2019-12-04 06:46:44
After I export an AVMutableComposition I use PHPhotoLibrary to save the video to the camera roll. In the creationRequestForAssetFromVideoAtFileURL: completion handler, I then open the saved video in Instagram, like so: __block PHObjectPlaceholder *videoAssetPlaceholder; [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ PHAssetChangeRequest *req = [PHAssetChangeRequest creationRequestForAssetFromVideoAtFileURL:localVideoURL]; videoAssetPlaceholder = req.placeholderForCreatedAsset; } completionHandler:^(BOOL success, NSError *error) { if (success) { completion(YES); NSString *localID =

API Tags endpoint error - min_id is not a valid cursor for this tag

空扰寡人 提交于 2019-12-04 05:55:12
Since a few days ago we've been getting an error response from Instagram API - it complains that we are using an invalid cursor 'min_id' when accessing the Tags endpoint. Thing is we don't use 'min_id'. We use 'min_tag_id', which according to the documentation ( deprecated & current ) is a valid cursor for this endpoint. Doing some research I see that some people have been getting unexpected errors too (though different ones) around this week. Example API request (plug an access token and paste in a browser to see for yourselves): https://api.instagram.com/v1/tags/nofilter/media/recent?access

How to Get Historical Data from Instagram API

一世执手 提交于 2019-12-04 03:45:45
I'm making an Instagram analytics web app. I've carefully read all of the Instagram API endpoints and I can't find any way to get historical data (ie, followers over time). All I would need would be something like a date followed, attached to each follower object. However, there are Instagram analytics sites that offer this, for example, minter.io. https://minter.io/faq#faq-posting-1 From link above: " Minter.io provides full historical data on Instagram accounts and hashtags except for: Accounts – List of Lost Followers Hashtags – Reach and Exposure In these reports the data will only be

Share video and sticker Image to Instagram Story on Android

ⅰ亾dé卋堺 提交于 2019-12-04 03:17:58
问题 How can I share a video as a background and an image as a sticker together to Instagram Story? This documentation has only one solution if both contents are images. https://developers.facebook.com/docs/instagram/sharing-to-stories/ I would like to send a background video together with a sticker image. Is that possible with Instagram Story? I tried that, but unfortunately it didn't work: // Define image asset URI and attribution link URL Uri backgroundAssetUri = Uri.fromFile(new File

https://api.instagram.com/oauth/authorize api login error

為{幸葍}努か 提交于 2019-12-03 18:40:30
问题 Instagram login API is in use. After approving the app, the following error occurs. The user denied your request. It worked well until yesterday. What's the problem? 回答1: The value of the authorization buttons is different in other languages which probably causes the issue, I guess an issue on Instagram itself. After doing some research I found out you can change the language of the authorization screen using the following parameter: &hl=en Did some test with my apps and it's solving the

Instagram API for Non-Business accounts

依然范特西╮ 提交于 2019-12-03 16:32:22
问题 I want to make a app for Non-Bussiness Instagram accounts. My only problem is that when I access the old Instagram API (https://www.instagram.com/developer/) they tell me to use the new Graph API, but when I go to the Instagram Graph API reference, they says: If you are building apps for Instagram Non-Business Accounts, please use the Instagram Platform API instead. (Note: The old Instagram API will be deprecated soon: https://developers.facebook.com/blog/post/2018/01/30/instagram-graph-api

Instagram graph api media posts between dates

走远了吗. 提交于 2019-12-03 16:29:25
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(access_token) profile = graph.get_object(user) posts = graph.get_connections(profile['id'], 'media?fields

How to web scrape followers from Instagram web browser?

泄露秘密 提交于 2019-12-03 13:36:50
问题 Can anyone tell me how to access the underlying URL to view a given user's Instagram followers? I am able to do this with Instagram API, but given the pending changes to the approval process, I have decided to switch to scraping. The Instagram web browser allows you to view the follower list for any given public user - for example, to view Instagram's followers, visit "https://www.instagram.com/instagram", and then click on the followers URL to open a window that paginates through viewers