applicious_utils 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,11 +7,11 @@ class AppliciousFacebook extends AppliciousCore
|
|
7
7
|
@FB_STATUS
|
8
8
|
|
9
9
|
constructor: ->
|
10
|
-
|
10
|
+
AP.log 'Applicious [AP::FB] Loaded'
|
11
11
|
|
12
12
|
|
13
13
|
init: (@APP_ID) ->
|
14
|
-
|
14
|
+
AP.log 'Initialised [AP::FB]', @APP_ID
|
15
15
|
|
16
16
|
|
17
17
|
login: (permissions = '', callback) ->
|
@@ -22,21 +22,21 @@ class AppliciousFacebook extends AppliciousCore
|
|
22
22
|
@FB_SESSION = response.session
|
23
23
|
@FB_UID = response.session.uid
|
24
24
|
catch error
|
25
|
-
|
25
|
+
AP.log 'Error', error
|
26
26
|
|
27
27
|
if response.session
|
28
28
|
if permissions && permissions != ''
|
29
29
|
if permissions == response.perms
|
30
|
-
|
30
|
+
AP.log 'Login accepted - Permissions Accepted', response
|
31
31
|
callback true, response
|
32
32
|
else
|
33
|
-
|
33
|
+
AP.log 'Login rejected - Permissions Rejected', response
|
34
34
|
callback false, response
|
35
35
|
else
|
36
|
-
|
36
|
+
AP.log 'Login accepted - No Permissions', response
|
37
37
|
callback true, response
|
38
38
|
else
|
39
|
-
|
39
|
+
AP.log 'Login rejected', response
|
40
40
|
callback false, response
|
41
41
|
return
|
42
42
|
|