CoreJS - Backend is a toolset that helps you to develop and debug modern applications. This tool is made to be used in Node.js, which allows you to easily build efficient, scalable applications. It uses modern JavaScript, is built with TypeScript and bring best JavaScript concepts.
# 1. Clone the repository
git clone https://github.com/ialopezg/backend.git
# 2. Enter your newly-cloned folder
cd backend
# 3. Install dependencies
npm install
# 4. Start the server
npm run start
Compatible with both TypeScript and ES6 (Recommend to use TypeScript
- Preferences: Global preferences.
Mailer
: Global email.Users
: User management.Auth
: Authorization and authentication management.Token
: Token management, provision, and renew.
Author - Isidro A. Lopez G.
CoreJS - Backend under MIT license.
© Copyright 1995-present - Isidro A. Lopez G.
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '1249950735404556',
cookie : true,
xfbml : true,
version : '{api-version}'
});
FB.AppEvents.logPageView();
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
comprobar estado
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
response
{
status: 'connected',
authResponse: {
accessToken: '...',
expiresIn:'...',
signedRequest:'...',
userID:'...'
}
}
function checkLoginState() {
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
}