1.1.3 • Published 1 year ago

lesca-facebook-share v1.1.3

Weekly downloads
4
License
MIT
Repository
-
Last release
1 year 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.3

1 year ago

1.1.2

1 year ago

1.1.1

2 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago