Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Facebook login work with parse/node #145

Closed
jordikroon opened this issue Dec 28, 2015 · 2 comments
Closed

Make Facebook login work with parse/node #145

jordikroon opened this issue Dec 28, 2015 · 2 comments
Labels
type:question Support or code-level question

Comments

@jordikroon
Copy link

I'm getting an The Facebook JavaScript SDK must be loaded before calling init. error. I spend over an hour finding a workaround, but I don't see any way to include FB SDK in NodeJS.

var Parse = require('parse/node');

const ParseID = '';
const ParseApiKey = '';

if (!Parse.applicationId) {
    Parse.initialize(ParseID, ParseApiKey);
    Parse.FacebookUtils.init(); 
}

module.exports = Parse;
@wangmengyan95 wangmengyan95 added the type:question Support or code-level question label Dec 30, 2015
@wangmengyan95
Copy link
Contributor

Hi @jordi12100, the exception is because Facebook SDK does not support node environment. The Facebook SDK is meant to be used client-side only, since it cannot manage more than one user session simultaneously. If you really need this, you can use Facebook and parse REST API instead.

@andrewimm
Copy link
Contributor

Closing, since there is no FB SDK for Node JS, and this is not something we can implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Support or code-level question
Projects
None yet
Development

No branches or pull requests

3 participants