I have a site with a share to facebook button, but the content that it pulls is not ideal. What is the best way to dynamically set the image and content that is share to facebook.
this is what my facebook button looks like.
<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" onclick="return fbs_click()" target="_blank" class="fb_share_link btn btn-default btn-xs"><i class="icon-facebook"></i></a>