Make sure dev ini file gets groups from facebook, also updated JS code to clear all contacts when we detect no accounts available.
This commit is contained in:
Родитель
2ab3ab762d
Коммит
1a08b0aa75
|
@ -28,7 +28,7 @@ oauth.twitter.com.authorize = https://twitter.com/oauth/authenticate
|
|||
# below for this server.
|
||||
oauth.facebook.com.app_id = 163981616966631
|
||||
oauth.facebook.com.app_secret = 78e3bd4ab991ccf50fb9220452eb30b4
|
||||
oauth.facebook.com.scope = publish_stream,offline_access
|
||||
oauth.facebook.com.scope = publish_stream,offline_access,user_groups
|
||||
oauth.facebook.com.authorize = https://graph.facebook.com/oauth/authorize
|
||||
oauth.facebook.com.access = https://graph.facebook.com/oauth/access_token
|
||||
|
||||
|
|
|
@ -297,6 +297,11 @@ function (require, $, fn, rdapi, oauth, jig, url,
|
|||
|
||||
} else {
|
||||
showStatus('statusSettings');
|
||||
|
||||
//Clean up storage
|
||||
services.domainList.forEach(function (domain) {
|
||||
delete store[services.domains[domain].type + 'Contacts'];
|
||||
});
|
||||
}
|
||||
|
||||
dispatch.pub('sizeToContent');
|
||||
|
|
|
@ -285,7 +285,7 @@ function (object, Widget, $, template,
|
|||
},
|
||||
|
||||
/**
|
||||
* Use store to save gmail contacts, but fetch from API
|
||||
* Use store to save contacts, but fetch from API
|
||||
* server if there is no store copy.
|
||||
*/
|
||||
storeContacts: function () {
|
||||
|
|
Загрузка…
Ссылка в новой задаче