|
@@ -192,13 +192,33 @@ tarteaucitron.services.facebook = {
|
|
"cookies": [],
|
|
"cookies": [],
|
|
"js": function () {
|
|
"js": function () {
|
|
"use strict";
|
|
"use strict";
|
|
- tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-comments', 'fb-activity', 'fb-like-box', 'fb-send', 'fb-share-button', 'fb-like'], '');
|
|
|
|
|
|
+ tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-like-box', 'fb-send', 'fb-share-button', 'fb-like'], '');
|
|
tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
|
|
tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
|
|
},
|
|
},
|
|
"fallback": function () {
|
|
"fallback": function () {
|
|
"use strict";
|
|
"use strict";
|
|
var id = 'facebook';
|
|
var id = 'facebook';
|
|
- tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-comments', 'fb-activity', 'fb-like-box', 'fb-send', 'fb-share-button', 'fb-like'], tarteaucitron.engage(id));
|
|
|
|
|
|
+ tarteaucitron.fallback(['fb-post', 'fb-follow', 'fb-activity', 'fb-like-box', 'fb-send', 'fb-share-button', 'fb-like'], tarteaucitron.engage(id));
|
|
|
|
+ }
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+// facebookcomment
|
|
|
|
+tarteaucitron.services.facebookcomment = {
|
|
|
|
+ "key": "facebookcomment",
|
|
|
|
+ "type": "comment",
|
|
|
|
+ "name": "Facebook (commentaire)",
|
|
|
|
+ "uri": "https://www.facebook.com/help/cookies/",
|
|
|
|
+ "needConsent": true,
|
|
|
|
+ "cookies": [],
|
|
|
|
+ "js": function () {
|
|
|
|
+ "use strict";
|
|
|
|
+ tarteaucitron.fallback(['fb-comments'], '');
|
|
|
|
+ tarteaucitron.addScript('//connect.facebook.net/' + tarteaucitron.getLocale() + '/sdk.js#xfbml=1&version=v2.0', 'facebook-jssdk');
|
|
|
|
+ },
|
|
|
|
+ "fallback": function () {
|
|
|
|
+ "use strict";
|
|
|
|
+ var id = 'facebookcomment';
|
|
|
|
+ tarteaucitron.fallback(['fb-comments'], tarteaucitron.engage(id));
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|