cogsci / wigglemap

Repo for reroute hackathon at Hattery (For Diana)
www.wigglemap.com
5 stars 0 forks source link

Social buttons: Like, Tweet #33

Open epan opened 12 years ago

epan commented 12 years ago

Put on homepage social buttons on home page

On app page social buttons on app page

Facebook Instructions

  1. Include the JavaScript SDK on your page once, ideally right after the opening body tag.
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
  1. Place the code for your plugin wherever you want the plugin to appear on your page.
<div class="fb-like" data-href="http://www.facebook.com/wigglemap" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="lucida grande"></div>

For Twitter

<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://wigglemap.com" data-text="Bike routes focused on safety!" data-via="WiggleMap" data-related="WiggleMap">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

Or whatever best practices you think are fine. I don't know to use @WiggleMap or #WiggleMap etc.

slinlee commented 12 years ago

Yeah, include it on app page as well.

encourage it in the flow.

On Oct 25, 2012, at 12:38 PM, Eric Pan notifications@github.com wrote:

Put on homepage (and on app page?)

— Reply to this email directly or view it on GitHub.