Skip to content

Instantly share code, notes, and snippets.

@lenagroeger
Created February 26, 2013 15:14
Show Gist options
  • Save lenagroeger/5039164 to your computer and use it in GitHub Desktop.
Save lenagroeger/5039164 to your computer and use it in GitHub Desktop.
propublica.views.fbPost = propublica.View.extend({
cssClass : "member_box_fb_bt",
bindings : {
click : "post",
},
post : function(e){
var curId = $(e.currentTarget).attr("data-id")
var url = window.location.host + "/members/" + curId +".png";
FB.ui({
method : 'feed',
link : url,
display : "popup",
picture : window.location.host + "/members/" + curId + ".png",
name : 'Where My Congress Member Stands on Guns',
description: "This is where " + curId + " stands on guns"
}, function(fbPostResp){
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment