Sha256: 61daa37bd0049e1a531d5ce05f6b017a93f7cf29fa27012c6b5e85e27c6b9dd7

Contents?: true

Size: 551 Bytes

Versions: 2

Compression:

Stored size: 551 Bytes

Contents

#= require ./applicious_class.js.coffee
	
class AppliciousFacebook extends Applicious
	@app_id = ''
	constructor: (@app_id) ->
		console.log('loaded FB' + @app_id)
	
	testLog: (logData = 'p')->
		this.log('Calling Log from FB ' + logData)

	promptLogin: (permissions, callback) ->
		FB.login ((response) =>
			if response.perms and response.session #TODO What if no perms requested?
				callback true, response
			else
				callback false, response
		), perms: permissions
# - - - #

root = exports ? window
root.AppliciousFacebook = AppliciousFacebook

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
applicious_utils-0.1.12 app/assets/javascripts/applicious_utils/Applicious/facebook_class.js.coffee
applicious_utils-0.1.10 app/assets/javascripts/applicious_utils/Applicious/facebook_class.js.coffee