facebook-share-link

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i facebook-share-link

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bendrucker