1.0.0 • Published 8 years ago

facebook-share-link v1.0.0

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

facebook-share-link Build Status

Generate Facebook sharing links

Install

$ npm install --save facebook-share-link

Usage

var FacebookShare = require('facebook-share-link')

var share = FacebookShare(1234) //=> app id
share({
  href: 'http://www.my-website.com',
  display: 'popup'  
})
//=> https://www.facebook.com/dialog/share?app_id=...

API

Facebook(app) -> function

Creates a sharing function bound to a specified app ID.

app

Required
Type: number / string

A number or numeric string representing your app ID.

share(options) -> string

Generates a Facebook sharing dialog link.

options

Required
Type: object

See the Sharing on the Web documentation from Facebook for available options.

License

MIT © Ben Drucker