Facebook comment support

This commit is contained in:
Amauri CHAMPEAUX 2015-02-18 17:30:07 +01:00
parent 220f464547
commit 806e9d33bd
1 changed files with 22 additions and 2 deletions

View File

@ -192,13 +192,33 @@ tarteaucitron.services.facebook = {
"cookies": [],
"js": function () {
"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');
},
"fallback": function () {
"use strict";
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));
}
};