Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
lesca-facebook-share
Advanced tools
$ npm install lesca-facebook-share --save
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>;
method | options | description | default |
---|---|---|---|
install(uid, {v, onload }) | uid | facebook app id | |
v | version of facebook sdk.js | 8.0 | |
onload | get FB function | ||
share({ url, hashtag, quote, redirect_uri }) | url | og:meta source | |
hashtag | hashtag | ||
quote | quote | ||
redirect_uri | !! mobile device necessary | location root |
FAQs
Simple facebook share
The npm package lesca-facebook-share receives a total of 1 weekly downloads. As such, lesca-facebook-share popularity was classified as not popular.
We found that lesca-facebook-share demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.