Socket
Socket
Sign inDemoInstall

lesca-facebook-share

Package Overview
Dependencies
1
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lesca-facebook-share

for facebook share only


Version published
Weekly downloads
102
increased by10100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

dev by JamesHsu made in Taiwan

Installation

$ npm install lesca-facebook-share --save

Usage

import Facebook from 'lesca-facebook-share';

Facebook.install('facebook-app-id', {
	onload: () => {
		console.log(FB);
	},
});

function share() {
	Facebook.share({
		url: 'https://lesca.net',
		quote: `Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.`,
		hashtag: 'Lesca',
	});
}

<button onClick={share}>share to facebook</button>;

Methods

methodoptionsdescriptiondefault
install(uid, {v, onload })uidfacebook app id
vversion of facebook sdk.js8.0
onloadget FB function
share({ url, hashtag, quote, redirect_uri })urlog:meta source
hashtaghashtag
quotequote
redirect_uri!! mobile device necessarylocation root

Keywords

FAQs

Last updated on 03 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc