Mercurial > pumpbridge
comparison views/index.jade @ 12:f190abf340ef
fixed some problems with facebook (caused by developers.facebook.com) removed fql :D
author | Mathias Gebbe <mgebbe@intevation.de> |
---|---|
date | Thu, 12 Jun 2014 10:23:05 +0200 |
parents | 9d17cb5147ca |
children | c5bf4e02958e |
comparison
equal
deleted
inserted
replaced
11:9d17cb5147ca | 12:f190abf340ef |
---|---|
35 /* Executed when the APIs finish loading */ | 35 /* Executed when the APIs finish loading */ |
36 function render() { | 36 function render() { |
37 | 37 |
38 gapi.signin.render('gp-root', { | 38 gapi.signin.render('gp-root', { |
39 'callback': 'signinCallback', | 39 'callback': 'signinCallback', |
40 'clientid': 'GOOOGLEPLUSCLIENTID', | 40 'clientid': 'GOOGLEPLUSCLIENTID.apps.googleusercontent.com', |
41 'redirecturi': 'postmessage', | 41 'redirecturi': 'postmessage', |
42 'response_type' : 'code', | 42 'response_type' : 'code', |
43 'accesstype': 'offline', | 43 'accesstype': 'offline', |
44 'approvalprompt': 'force', | 44 'approvalprompt': 'force', |
45 'cookiepolicy': "https://yourserver.org", | 45 'cookiepolicy': "https://pumpbridge.me", |
46 'requestvisibleactions': 'http://schemas.google.com/AddActivity', | 46 'requestvisibleactions': 'http://schemas.google.com/AddActivity', |
47 'scope': 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email' | 47 'scope': 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email' |
48 }); | 48 }); |
49 } | 49 } |
50 | 50 |
106 | 106 |
107 $.ajaxSetup({ | 107 $.ajaxSetup({ |
108 cache: true | 108 cache: true |
109 }); | 109 }); |
110 | 110 |
111 $.getScript('//connect.facebook.net/en_UK/all.js', function () { | 111 $.getScript('//connect.facebook.net/de_DE/all.js', function () { |
112 FB.init({ | 112 FB.init({ |
113 appId: 'FACEBOOKID', | 113 appId: 'FACEBOOKCLIENTID', |
114 status : true | 114 status: true |
115 }); | 115 }); |
116 | 116 |
117 FB.getLoginStatus(function(response) { | 117 FB.getLoginStatus(function(response) { |
118 if (response.status === 'connected') { | 118 if (response.status === 'connected') { |
119 // the user is logged in and has authenticated your | 119 // the user is logged in and has authenticated your |
147 }); | 147 }); |
148 } else { | 148 } else { |
149 //Not logged in | 149 //Not logged in |
150 //alert('you cancelled login or did not fully authorize.'); | 150 //alert('you cancelled login or did not fully authorize.'); |
151 } | 151 } |
152 }, {scope: 'publish_actions,publish_stream,read_stream,read_friendlists,user_friends,user_likes,user_activities'}); | 152 }, {scope: 'publish_actions,publish_stream,read_stream,read_friendlists,user_likes,user_friends,user_activities,user_status'}); |
153 }) | 153 }) |
154 | 154 |
155 //$('.logoutbutton').on('click', function(e){ | 155 //$('.logoutbutton').on('click', function(e){ |
156 // FB.logout(); | 156 // FB.logout(); |
157 // }) | 157 // }) |