Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
facebook-api
Advanced tools
Access Facebook with Javascript. This module offers high level and low level calls to the graph API.
This is an work in process I will implement features as I need them. If you have something valuable to add, send it to me and I will merge it.
We use the function viewback to display the results of the callbacks
function viewback(err, data) {
if(err) {
console.log("Error: " + JSON.stringify(err));
} else {
console.log("Data: " + JSON.stringify(data));
}
}
Use API without Authorization
var fbapi = require('facebook-api');
var client = fbapi.user(null); // do not set an access token
client.get("btaylor").info(viewback);
> Data: {"id":"220439","name":"Bret Taylor","first_name":"Bret","last_name":"Taylor","link":"http://www.facebook.com/btaylor","gender":"male","locale":"en_US"}
Use API with Authorization
var fbapi = require('facebook-api');
var client = fbapi.user(access_token); // needs a valid access_token
client.me.info(viewback);
client.me.friends(viewback);
Use Raw API
var raw = require('facebook-api').raw;
raw("GET", "cocacola", [], viewback);
> Data: {"id":"40796308305","name":"Coca-Cola" ... }
I will merge the following merge requests:
FAQs
offering high level and low level calls against the graph API
We found that facebook-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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.