root = exports ? window root.Applicious.Facebook = AppliciousFacebook class AppliciousFacebook extends Applicious constructor: (@app_id) -> console.log('loaded FB' + @app_id) promptLogin: (permissions, callback) -> FB.login ((response) => if response.perms and response.session callback true, response else callback false, response ), perms: permissions