Skip to content

Instantly share code, notes, and snippets.

@curtis1000
Created October 31, 2012 18:13
Show Gist options
  • Save curtis1000/3988799 to your computer and use it in GitHub Desktop.
Save curtis1000/3988799 to your computer and use it in GitHub Desktop.
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