I'm using http://instafeedjs.com/ to embed a grid of images onto our users' profile pages.
The steps you'll need to take are:
- Register your app with Instagram
- Install instafeed.js in our package.js file
- Add instagram credentials to the user schema, but keep them hidden
- Show Add Instagram Feed button unless it's already been added, then show instafeed grid
- Have instagram return API tokens to confirmation popup (redirect_uri)
- Create route for confirmation popup
- When user clicks on Add Instagram Feed button, open the confirmation popup
- When confirmation template loads, grab tokens from URL and set values of hidden inputs
- When Confirm button is clicked, let autoform update user object
- When user_info template is rendered, supply instafeed with data from user object
Don't forget to add new files to package.js when necessary, e.g package.js