
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.
facebook-graphapi-js-connector
Advanced tools
Connect your javascript application to facebook using the facebook graph api. Use the package to read, write, update or delete posts or info on behalf of the logged in user account, or on behalf of pages managed by the logged in user
When your customer want you to make a facebook integration you should head over to facebook for developers, and check out the Graph API, and also visit the group Facebook Developer Community at facebook.
Be aware; This package is only a personal side-project, use with caution. The author has no affiliation with facebook
With npm installed, run
$ npm install --save facebook-graphapi-js-connector
<button class="login-button" type="button" name="button">Login</button>
<button class="logout-button" type="button" name="button">Logout</button>
<fieldset>
<div>
<input type="text" id="selectedPageIdInput">
<label for="selectedPageIdInput">Page ID</label>
</div>
<button class="get-access-token-button" type="button" name="button">Get page access token</button>
</fieldset>
import graphapi from 'facebook-graphapi-js-connector';
graphapi.init({appId: <'Your facebook app ID'>});
const logout_button = document.querySelector('.logout-button');
logout_button.onclick = () => {
graphapi.logout();
}
const get_access_token_button = document.querySelector('.get-access-token-button');
get_access_token_button.onclick = () => {
graphapi.getPageAccessToken({pageId: document.getElementById('selectedPageIdInput').value});
}
Just for fun...
FAQs
Connect your javascript application to facebook using the facebook graph api. Use the package to read, write, update or delete posts or info on behalf of the logged in user account, or on behalf of pages managed by the logged in user
The npm package facebook-graphapi-js-connector receives a total of 1 weekly downloads. As such, facebook-graphapi-js-connector popularity was classified as not popular.
We found that facebook-graphapi-js-connector 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.