How to initialize facebook sdk and parse for parse.com facebook login in angularjs $app.run and factory/service.
Functions in the controller can then be used by making sure that both libs have been loaded and initialized. Solution to the following errors
You need to call Parse.initialize before using Parse.
The Facebook JavaScript SDK must be loaded before calling init.