an easy instagram collage for your website
Check out the immixr 2.0 homepage for examples and more information.
- Download immixr.js (clone this repo)
- Put immixr.js in the javascript folder of your website.
- Put immixr.css in whatever folder you keep css files for your website.
- Include both in your html file.
- Go to https://www.instagram.com/developer/, sign in, and register a new client. Make sure that "Disable implicit OAuth" is NOT checked.
- Double check that you remembered to uncheck "Disable implicit OAuth".
- Get your Instagram User Id.
- Get an access token for your account and the new client you just created.
- In your main.js, a new javascript file, or in your html in script tags, initialize immixr, replacing the fields with your personal information and your preferred attributes.
$(document).ready(function() { var userID = "YOUR_USER_ID"; var accessToken = "YOUR_ACCESS_TOKEN"; var biggestWidth = BIGGEST_IMAGE_WIDTH; var opacity = IMAGE_OPACITY; var gutterWidth = GUTTER_WIDTH; immixr(gutterWidth, opacity, userID, accessToken, biggestWidth); });
- Add
<div id="immixr"></div>
to your html. immixr expands to fit its parent div. Its parent div needs to haveposition: relative;
and a set height. - Send me a picture of immixr in action! (or what went wrong along the way)
Check out the immixr 2.0 homepage for examples and more information.
If you find an issue or have a suggestion, use the issues page.
If you'd like to contribute, create a pull request or tweet me.