
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
facebook-comment-api
Advanced tools
The simple library to reply comment real-time
If you just want to use facebook-comment-api, you should use this command:
npm install facebook-comment-api
It will download facebook-comment-api from NPM repositories
or
npm install Notekunn/facebook-comment-api
const login = require("facebook-comment-api");
login({ access_token: "EAA" }, (err, api) => {
if (err) return console.error(err);
api.listen((err, event) => {
api.sendComment({ body: event.body }, event.idReplyTo)
});
});
This function is returned by require(...)
and is the main entry point to the API.
It allows the user to log into facebook given the right credentials.
If it succeeds, callback
will be called with a null
object (for potential errors) and with an object containing all the available functions.
If it fails, callback
will be called with an error object.
Arguments
credentials
: An object containing the field access_token
used to login, or an object containing the field appState
.options
: An object representing options to use when logging in.callback(err, api)
: A callback called when login is done (successful or not). err
is an object containing a field error
.It send a friend request to a user
Arguments
userID
: userIDcallback(error, data)
: A callback when add friends doneIt get all info of and user
Arguments
userID
: userIDcallback(error, data)
: A callback when add getinfo doneArguments
commentID
: commentIDcallback(error, data)
: A callback when add getinfo doneIt will call the callback
every have new notification
Arguments
callback(error, data)
: callbackFAQs
The simple library to reply comment real-time
We found that facebook-comment-api 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 Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
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.