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.
fbapp-test-users
Advanced tools
List, create, update and delete Facebook test users for an application
A node module to manage Facebook Test Users of an application.
$ npm install fbapp-test-users
var FbTestUsers = require('fbapp-test-users');
var FbTestUsers = require('fbapp-test-users');
FbTestUsers.setAppId('XXXX');
FbTestUsers.setAppSecret('YYYY');
Retrieve the list of test users. By default, if no limit is given, the function gets all the test users.
FbTestUsers.getList(50)
.then(function(list) {
// Example:
/*
[
{
id: '123456789',
loginUrl: 'https://developers.facebook.com/checkpoint/test-user-login/123456789/',
accessToken: 'XXXXXXXXXX',
name: 'Open Graph Test User',
link: 'http://www.facebook.com/123456789'
}
]
*/
});
Create a test user.
See the fields in the official documentation.
FbTestUsers.createUser({
installed: false,
name: 'Batman'
})
.then(function(createdUser) {
// Example:
/*
{
id: '123456789',
email: 'xxx',
login_url: 'https://developers.facebook.com/checkpoint/test-user-login/123456789/',
password: '1876562816'
}
*/
});
Update a test user.
name
and password
can be null if you don't want to update the name or password.
FbTestUsers.updateUser(user.id, 'New name', 'New password')
.then(function success(res) {
// This function returns the result of the operation [true|false]
// Example:
/*
{
success: true
}
*/
});
Delete a test user.
FbTestUsers.deleteUser(user.id)
.then(function success(res) {
// This function returns the result of the operation [true|false]
// Example:
/*
{
success: true
}
*/
});
MIT, see LICENSE.md for details.
FAQs
List, create, update and delete Facebook test users for an application
We found that fbapp-test-users 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.