1.1.1 • Published 7 months ago

lesca-facebook-share v1.1.1

Weekly downloads
4
License
MIT
Repository
-
Last release
7 months ago

React React React React React NPM React NPM

Why use it?

It use for share url to Facebook simply.

Live Demo

Installation

npm install lesca-facebook-share --save

Usage

install before DOM Render

import Facebook from 'lesca-facebook-share';

Facebook.install('facebook-app-id'); // get your id => https://developers.facebook.com/apps/

share with parameters

Facebook.share({
  href: 'https://github.com/jameshsu1125/lesca-facebook-share',
  quote: 'use share facebook api simply',
  hashtag: 'lesca_facebook_share',
  redirect_uri: window.location.href,
});

Development

Methods

methoddescriptionreturn
.install(uid: string)initialize with uidvoid
.share({ href: string, hashtag: string, quote: string, redirect_url: string})parmaters

share parmaters

parmatersdescriptiondefault
href: stringshare url
hashtag: stringhashtagvoid
quote: stringquotevoid
redirect_url: stringredirect url (mobile necessary)location.href

Features

  • maintain if necessary
1.1.1

7 months ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago