Does anyone have a plugin/api/library for sharing on Instagram, please?
I’m not aware of any, and I recently thought about looking into writing one myself, but I was not encouraged by the API documentation on Instagram’s site (https://www.instagram.com/developer/). They seem to be shutting out all but medium-to-large sized businesses from accessing their back-end - and even then there is what appears to be a pretty restrictive review process. This is in line with what Facebook seems to be doing to their own API, which used to be developer-friendly and put power in the users’ hands to grant or deny an app permission to their data: now accessing even simple data like a users’ liked pages is a comparative nightmare. I’m personally rethinking any projects that rely on Facebook’s (and therefore Instagram’s) API, as they seem to shutting out smaller developers in reaction to some of their recent negative press (Cambridge Analytica, etc.). They’re throwing the baby out with the bathwater if you ask me, but what can you do?
(Sorry for the screed in response to a pretty straight-forward question.) ¯_(ツ)_/¯
I was about reaching the same conclusion. Was just hoping that a simple image post with a comment was possible, but it’s looking very restricted now.
I know it’s not what you asked for ( in fact it’s the exact opposite ) but if you only need to get photos from someone’s feed then that can be done via scraping - https://gitlab.com/grahamranson/Puggle/blob/master/systems/instagram.lua
The plan was to do more Instagram stuff ( despite not needing more than simply pulling photos down ) but yea I just never got around to and now I’m not sure I will.
I actually only need to post images with a small comment. No pulling of info at all.
It’s possible to open Instagram app from iOS, and it will point to the last picture in the media library (re-save your desired image to the end there as a hack to point to any other image). Here’s code for it:
if (instagramPath == nil) then instagramPath = "999999" end local instagramURL = "instagram://library?LocalIdentifier="..string.urlEncode(instagramPath) if system.openURL( instagramURL ) then -- OK ! We're now off in instagram app, never to return? else native.showAlert( "Instagram not available", "Instagram is not available on this device. Install the Instagram app to enable this share option.", { "OK" } ) end
However, this doesn’t seem to work for Android. Nor does the social popup in my android testing. Anyone know a way to launch the Instagram app from android?