Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Instagram
Started by horacebury Feb 23 2019 10:38 PM

5 replies to this topic
plugin instagram social
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,069 posts
  • Corona SDK

Does anyone have a plugin/api/library for sharing on Instagram, please?



[TOPIC: post.html]
#2

schroederapps

[GLOBAL: userInfoPane.html]
schroederapps
  • Contributor

  • 466 posts
  • Corona SDK

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.) ¯\_(ツ)_/¯
  • horacebury and agramonte like this

[TOPIC: post.html]
#3

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,069 posts
  • Corona SDK

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.

[TOPIC: post.html]
#4

GrahamRanson

[GLOBAL: userInfoPane.html]
GrahamRanson
  • Contributor

  • 105 posts
  • Corona SDK

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.


  • horacebury likes this

[TOPIC: post.html]
#5

horacebury

[GLOBAL: userInfoPane.html]
horacebury
  • Corona Geek

  • 3,069 posts
  • Corona SDK

I actually only need to post images with a small comment. No pulling of info at all.



[TOPIC: post.html]
#6

dooq

[GLOBAL: userInfoPane.html]
dooq
  • Enthusiast

  • 39 posts
  • Corona SDK

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?


  • horacebury likes this


[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: plugin, instagram, social