Skip to content
Web Component wrapper for Facebook Image using Polymer
Branch: master
Clone or download
Pull request Compare This branch is 6 commits ahead, 74 commits behind webcomponents:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.editorconfig
README.md
index.html

README.md

<facebook-image>

Web Component wrapper for Facebook Image using Polymer.

Maintained by Luiz Tiago.

Demo

Check it live.

Usage

  1. Import Web Components' polyfill:

    <script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130711/polymer.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="src/facebook-image.html">
  3. Start using it!

    <facebook-image object="luiztiago"></facebook-image>

Options

Attribute Options Default Description
object string `` People, Event, Groups, Page, Application or Photo Album id
type square, small, normal, large large Type (size) of image. Check Facebook API and see each width and heigh
width int `` Width of image in pixels (only need int argument)
height int `` Height of image in pixels (only need int argument)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

License

MIT License

You can’t perform that action at this time.