Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added facebook comment create and remove events hooks

  • Loading branch information...
commit 08dbfd77502e1e2b36b839ecccc1c6e54e453fa0 1 parent e3c2d51
@yelled3 yelled3 authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 extensions/socialite.facebook.js
View
8 extensions/socialite.facebook.js
@@ -25,7 +25,13 @@
{
var fb = document.createElement('div'),
settings = Socialite.settings.facebook,
- events = { onlike: 'edge.create', onunlike: 'edge.remove', onsend: 'message.send' };
+ events = {
+ onlike: 'edge.create',
+ onunlike: 'edge.remove',
+ onsend: 'message.send' ,
+ oncomment: 'comment.create',
+ onuncomment: 'comment.remove'
+ };
fb.id = 'fb-root';
document.body.appendChild(fb);
network.script.src = network.script.src.replace('{{language}}', settings.lang);
Please sign in to comment.
Something went wrong with that request. Please try again.