
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.
Passportjs too complicated to integrate? Social-Api wraps Passportjs and let you setup one-click logins to 13 social-sites out of the box, without headache.
Social API is a NodeJS library that makes it easier to query various social sites' APIs.
The support is currently limited, due to the project being under development.
The syntax, method names and parameters names are not stable.
Push requests are welcome.
We partially support:
npm install social-api
var socialApi = require('social-api');
var page = new socialApi.facebook.page({
appid: "App ID",
appsecret: "App Secret",
uid: "User UID",
authtoken: "user Authtoken"
}, function(pageInstance) {
pageInstance.list(function(fbpages) {
// fbpages is an array of facebook pages owned by the user
});
}
var instagram = new socialApi.instagram({
clientId: "App ID",
clientSecret: "App Secret",
token: "user Authtoken"
}, function(instagramInstance) {
instagramInstance.recent(function(pictures) {
// pictures is an array of pictures posted by the user
});
}
var twitter = new socialApi.twitter({
consumer_key: "consumer_key",
consumer_secret: "consumer_secret",
access_token_key: "access_token_key",
access_token_secret: "access_token_secret"
}, function(twitterInstance) {
twitterInstance.timeline('username', 20 /*count*/, function(tweets) {
// tweets is an array of tweets posted by the user
});
twitterInstance.followers('username', 20 /*count*/, function(followers) {
// followers is an array of the user's followers
});
}
var github = new socialApi.github({
token: "user Authtoken"
}, function(githubInstance) {
githubInstance.repositories(function(repositories) {
// repositories is an array the user's repositories
});
githubInstance.orgs(function(orgs) {
// orgs is an array the user's organizations
});
githubInstance.gists(function(gists) {
// gists is an array the user's gists
});
}
FAQs
Easily setup and query APIs from the major social networks, in a single package. if you are searching for a way to login users and obtain auth tokens, see social-login instead.
The npm package social-api receives a total of 0 weekly downloads. As such, social-api popularity was classified as not popular.
We found that social-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.