
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@kiina/facebook-tools
Advanced tools
This package contains some Facebook tools, which can be used to help in the use of some of Facebook's APIs.
This package contains some Facebook tools, which can be used to help in the use of some of Facebook's APIs.
npm install @kiina/facebook-tools
Offers resources to access the Facebook's Broadcast API.
const { Broadcast } = require('@kiina/facebook-tools');
const broadcast = new Broadcast('<FB-PAGE-TOKEN>');
Creates a new label to use on broadcasts.
const labelName = 'LABEL_NAME';
await broadcast.createLabel(labelName);
Add an user to an existing label.
const labelName = 'LABEL_NAME';
await broadcast.addUserToLabel('<FB-USER-ID>', labelName);
Removes an user from an existing label.
const labelName = 'LABEL_NAME';
await broadcast.removeUserFromLabel('<FB-USER-ID>', labelName);
Sends a list of messages to an existing label.
const labelName = 'LABEL_NAME';
const messages = [
{ text: 'hello world' }
];
await broadcast.sendMessages(messages, labelName);
Reference: FacebookMessage
- https://developers.facebook.com/docs/messenger-platform/reference/send-api/#message
Offers resources to access the Facebook's Thread Control API.
const { ThreadControl } = require('@kiina/facebook-tools');
const threadControl = new ThreadControl('<FB-PAGE-TOKEN>');
Passes the control of the conversation with the given user to a different app.
const userId = '2153176358137612538';
const targetAppId = '539126537823531312';
const metadata = 'some payload you might want to send'
await threadControl.passThreadControl(userId, targetAppId, metadata);
Takes back the control of the conversation with the given user.
const userId = '2153176358137612538';
const metadata = 'some payload you might want to send'
await threadControl.takeThreadControl(userId, metadata);
FAQs
This package contains some Facebook tools, which can be used to help in the use of some of Facebook's APIs.
We found that @kiina/facebook-tools demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.