Facebook comment support
This commit is contained in:
parent
220f464547
commit
806e9d33bd
|
|
@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue