1.0.0 • Published 8 years ago

instawidget v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Instawidget

Free, simple embeddable Instagram widget.

Instawidget Screenshot

Usage

  1. Grab dist/production.min.css and include it in your site. Or just style the widget yourself - there's no iframes to get in your way.
  2. Grab dist/production.min.js and include it in your site. If you already have jQuery as a dependency, you can use dist/production.lite.min.js instead.
  3. Create a blank div and initialize the plugin with jQuery:
$('#my_container_div').instawidget({
  'username': 'schneidmaster',       // required
  'access_token': 'my_access_token', // required
  'hashtag': 'nofilter'              // optional
});

You must provide your Instagram username and access token; you can generate an access token from PixelUnion if you need one. If you provide a hashtag, the widget will show photos from across Instagram with that hashtag. If you don't, it will display your photos.

To check out a simple example, clone the repository, insert your username and access token in examples/index.html, and open it in a browser.

Contributing

  1. Fork it ( https://github.com/schneidmaster/instawidget/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request