Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PESOS photos from Instagram #29

Closed
aaronpk opened this issue Dec 9, 2013 · 5 comments

Comments

Projects
None yet
1 participant
@aaronpk
Copy link
Owner

commented Dec 9, 2013

  • Subscribe to the realtime API for my account
  • My server receives a POST request when I post a new photo
  • Download the photo and create a new photo post on my site
  • Find the first comment on the photo (the photo caption on Instagram)
  • Delete the first comment
  • Re-add the comment appending my permalink for the photo
@aaronpk

This comment has been minimized.

Copy link
Owner Author

commented Dec 14, 2013

Thinking more about this, I want to create the Instagram PESOS functionality as a service to keep the custom silo code out of p3k.

This relies on #17 as well as a finished micropub spec for posting photos.

This changes the flow slightly to the following:

  • User authorizes the bridge app on Instagram
  • User authorizes the bridge app on their site using IndieAuth + Authorization
  • The bridge subscribes to the realtime Instagram API for the user's account
  • The bridge receives a POST request when the user posts a new photo
  • Downloads the photo from Instagram, then makes a Micropub request to create a new photo post on the user's site
  • The user's site must return the URL of the new post in the response
  • The bridge finds the first comment on the photo (the photo caption on Instagram)
  • Deletes the first comment
  • Re-adds the comment appending the permalink or shortlink for the photo
@aaronpk

This comment has been minimized.

Copy link
Owner Author

commented Feb 23, 2014

Another thing: Not part of the PESOS app, but part of the webmention handling. When new comments are received from myself, add any hashtags to the page's tags (Instagram does this already)

@aaronpk aaronpk closed this Feb 24, 2014

@aaronpk aaronpk reopened this Feb 24, 2014

@aaronpk

This comment has been minimized.

Copy link
Owner Author

commented Feb 24, 2014

Made progress on photo posts tonight by creating a new "photo" template in #p3k. A nice side effect is that all my notes are now displaying the location information along with them.

Some discussion of formatting for the various pieces in IRC: http://indiewebcamp.com/irc/2014-02-23#t1393218392

(http://aaron.pk/r4Uj3)

@aaronpk

This comment has been minimized.

Copy link
Owner Author

commented Mar 15, 2014

This is complete! It's configured as a service called OwnYourGram.com.

Example photo: http://aaronparecki.com/notes/2014/03/14/2/nofilter-pdx

Currently waiting on whitelist approval from Instagram to be able to use the comments API to set the original post URL on the Instagram post.

@aaronpk

This comment has been minimized.

Copy link
Owner Author

commented Apr 20, 2014

Looks like I will not be able to get whitelist approval to use the comments API after all.

At the other end, Bridgy will be adding support for discovering "link-less" syndicated posts so that my Instagram photos won't need a short URL added after all. This is being discussed here snarfed/bridgy#130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.