Posting video on instagram using hooks

Instagram’s API doesn’t directly support uploading anything from 3rd party applications. Therefore you have to do some ugly user experience compromises when providing the functionality to your users. First, Prepare the video you want to upload to Instagram and store the path to it somewhere Second, Save it to the user’s Camera Roll: if (UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(filePath)) … Read more

Instagram API: How to get all user media?

You’re right, the Instagram API will only return 20 images per call. So you’ll have to use the pagination feature. If you’re trying to use the API console. You’ll want to first allow the API console to authenticate via your Instagram login. To do this you’ll want to select OAUTH2 under the Authentication dropdown. Once … Read more

Instagram ?__a=1 url not working anymore & problems with graphql/query to get data

The query_hash does not change, at least in the past few days. It indicate what TYPE of query it is. Below listed 4 query types I knew, hope these help. Load more media under https://www.instagram.com/someone/?__a=1 https://www.instagram.com/graphql/query/?query_hash=472f257a40c653c64c666ce877d59d2b&variables={“id”:”93024″,”first”:12,”after”:”XXXXXXXX”} (Instagram blocked the above access since 2018-04-12. You have to remove the __a=1 and extract the JSON inside a … Read more

CasperJS bind issue

The shim below isn’t needed anymore if PhantomJS 2 is used. Sadly CasperJS 1.1-beta3 doesn’t support it yet, so you might want to use the master branch from GitHub. The problem is that PhantomJS v1.x does not support the Function.prototype.bind. You need to add a shim for that. In CasperJS it goes into the page.initialized … Read more

PHP : writing a simple removeEmoji function

I think the preg_replace function is the simpliest solution. As EaterOfCode suggests, I read the wiki page and coded new regex since none of SO (or other websites) answers seemed to work for Instagram photo captions (API returning format) . Note: /u identifier is mandatory to match \x unicode chars. public static function removeEmoji($text) { … Read more

Filling in login forms in Instagram using selenium and webdriver (chrome) python OSX

There is a trick in this, instead of searching for the Button (Log In) there is a better way to log in without it. how? let’s see: Import the packages you need: from selenium import webdriver from selenium.webdriver.common.keys import Keys from time import sleep #Select the driver, In our case we will use Chrome. chromedriver_path=”chromedriver.exe” … Read more