Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
bottender-fb
Advanced tools
Facebook connector for Bottender.
npm install bottender-fb
const { Bot } = require('bottender');
const { createServer } = require('bottender/express');
const { FacebookConnector } = require('bottender-fb');
// We can get `story_fbid` in URL query string
const POST_ID =
process.env.POST_ID || `${process.env.PAGE_ID}_${process.env.STORY_FBID}`;
const bot = new Bot({
connector: new FacebookConnector({
accessToken: process.env.ACCESS_TOKEN,
appSecret: process.env.APP_SECRET,
}),
});
bot.onEvent(async context => {
if (context.event.isCommentAdd && context.event.comment.post_id === POST_ID) {
await context.sendPrivateReply('OK!');
await context.sendComment('Public comment!');
}
});
const server = createServer(bot);
client.sendComment
client.sendPrivateReply
context.sendComment
context.sendPrivateReply
event.isFeed
event.isStatus
event.isStatusAdd
event.isStatusEdited
event.status
event.isPost
event.isPostRemove
event.post
event.isComment
event.isCommentAdd
event.isCommentEdited
event.isCommentRemove
event.comment
event.isLike
event.isLikeAdd
event.isLikeRemove
event.like
event.isReaction
event.isReactionAdd
event.isReactionEdit
event.isReactionRemove
event.reaction
Pull Requests and issue reports are welcome. You can follow steps below to submit your pull requests:
Fork, then clone the repo:
git clone git@github.com:your-username/bottender-fb.git
Install the dependencies:
cd bottender-fb
yarn
Make sure the tests pass (including eslint, flow checks and jest tests):
yarn test
Make your changes and tests, and make sure the tests pass.
MIT © Yoctol
FAQs
Facebook connector for Bottender.
The npm package bottender-fb receives a total of 3 weekly downloads. As such, bottender-fb popularity was classified as not popular.
We found that bottender-fb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.