
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
fb-graph-api
Advanced tools
With fb-graph-api you can now easily make requests to Facebook's [Graph API](https://developers.facebook.com/docs/graph-api).
With fb-graph-api you can now easily make requests to Facebook's Graph API.
Author: CoericK
License: Apache v2
npm install --save fb-graph-api
yarn add fb-graph-api
// Using require() in ES5
var FBGraphAPI = require('fb-graph-api');
// Using ES2015 import through Babel
import FBGraphAPI from 'fb';
// ES5
var FB = new FBGraphAPI({
clientID: '...',
clientSecre: '...',
appAccessToken: '...' // Optional
});
// ES2015 w/ import through Babel
const FB = new FBGraphAPI({
clientID: '...',
clientSecret: '...',
appAccessToken: '...' // Optional
});
Generates the App Access Token for you.
FB.generateAppAccessToken()
.then(appAccessToken => {
console.log('appAccessToken', appAccessToken);
})
.catch(e => console.log('e', e));
Debugs a given token using the App Access Token.
FB.debugToken('EAAJ3bm5M....')
.then(data => {
console.log('debuggedToken', data);
/*
* data would look like this...
{
"app_id": 000000000000000,
"application": "Social Cafe",
"expires_at": 1352419328,
"is_valid": true,
"issued_at": 1347235328,
"scopes": [
"email",
"publish_actions"
],
"user_id": 1207059
}
*/
})
.catch(e => console.log('e', e));
FAQs
NodeJS Library for Facebook Graph API
The npm package fb-graph-api receives a total of 2 weekly downloads. As such, fb-graph-api popularity was classified as not popular.
We found that fb-graph-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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.