Created
October 31, 2012 18:13
-
-
Save curtis1000/3988799 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NERD.FeedPostDialog = { | |
init: function () { | |
this.bind(); | |
}, | |
bind: function () { | |
$(document).on('click', '.feed-post-dialog', function(e){ | |
e.preventDefault(); | |
var params = $(this).data(); | |
params.method = 'feed'; | |
FB.ui(params, NERD.FeedPostDialog.callback); | |
}); | |
}, | |
callback: function (response) { | |
} | |
}; | |
<!-- ----------------------------- --> | |
<a class="btn feed-post-dialog" | |
data-link="http://google.com" | |
data-picture="https://reward-zone.nerderylabs.com/assets/images/logo.png?nocache=1350490492" | |
data-name="This is the name parameter" | |
data-caption="This is the caption parameter" | |
data-description="This is the description parameter">Feed Post Dialog</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment