
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
facebook-graphapi-js-connector
Advanced tools
Lets you connect to facebook from your javascript application using the facebook graph api. Use the package to read, write, update or delete postsand info on the the logged in account, or on 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 side-project, use with caution.
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 apps 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.