8detect
2/21/2013 - 11:27 AM

Social snippet codes

Social snippet codes

#################### example of open graph
https://developers.facebook.com/docs/opengraphprotocol/#types
<meta property="og:title" content="The Rock"/>
    <meta property="og:type" content="movie"/>
    <meta property="og:url" content="http://www.imdb.com/title/tt0117500/"/>
    <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/> tối thiểu 50x50 , 200x200 recommended
    <meta property="og:site_name" content="IMDb"/>
    <meta property="fb:admins" content="USER_ID"/>
    <meta property="og:description"
          content="A group of U.S. Marines, under command of
                   a renegade general, take over Alcatraz and
                   threaten San Francisco Bay with biological
                   weapons."/>

geo info
  			   
   <meta property="og:latitude" content="37.416343"/>
    <meta property="og:longitude" content="-122.153013"/>
    <meta property="og:street-address" content="1601 S California Ave"/>
    <meta property="og:locality" content="Palo Alto"/>
    <meta property="og:region" content="CA"/>
    <meta property="og:postal-code" content="94304"/>
    <meta property="og:country-name" content="USA"/>
	
contact info

    <meta property="og:email" content="me@example.com"/>
    <meta property="og:phone_number" content="650-123-4567"/>
    <meta property="og:fax_number" content="+1-415-123-4567"/>
	
	
og:type=

Activities

    activity
    sport

Businesses

    bar
    company
    cafe
    hotel
    restaurant

Groups

    cause
    sports_league
    sports_team

Organizations

    band
    government
    non_profit
    school
    university

People

    actor
    athlete
    author
    director
    musician
    politician
    public_figure

Places

    city
    country
    landmark
    state_province

Products and Entertainment

    album
    book
    drink
    food
    game
    product
    song
    movie
    tv_show
	
Websites

    blog
    website
    article
Use article for any URL that represents transient content - such as a news article, blog post, photo, video, etc. Do not use website for this purpose. website and blog are designed to represent an entire site, an og:type tag with types website or blog should usually only appear on the root of a domain.

####### Multimedia
        <meta property="og:video" content="http://example.com/awesome.swf" />
        <meta property="og:video:height" content="640" />
        <meta property="og:video:width" content="385" />
        <meta property="og:video:type" content="application/x-shockwave-flash" />
        <meta property="og:video:secure_url" 
              content="https://secure.example.com/awesome.swf" />
        <meta property="og:video" content="http://example.com/html5.mp4" />
        <meta property="og:video:type" content="video/mp4" />
        <meta property="og:video" content="http://example.com/fallback.vid" />
        <meta property="og:video:type" content="text/html" />
------
        <meta property="og:audio" content="http://example.com/amazing.mp3" />
        <meta property="og:audio:title" content="Amazing Song" />
        <meta property="og:audio:artist" content="Amazing Band" />
        <meta property="og:audio:album" content="Amazing Album" />
        <meta property="og:audio:type" content="application/mp3" />


##################### 8tut template
<meta property="og:title" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://8tut.com/" />
<meta property="og:image" content="http://8tut.com/wp-content/themes/eztheme/images/logo-big.png" />
<meta property="og:site_name" content="8tut.com" />
<meta property="fb:admins" content="100002692460548" />


######################## Facebook , page URL based
https://developers.facebook.com/docs/plugins/ ( all facebook widgets )

https://developers.facebook.com/docs/reference/plugins/like/



<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&appId=235112709903012";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


######################### GPLUS , page URL based
	
<!-- Place this tag where you want the +1 button to render. -->
<div class="g-plusone" data-size="medium"></div>

<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

########################## Twitter , page URL based
<a href="https://twitter.com/share" class="twitter-share-button">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>


########################## PIN , must provide URL
http://pinterest.com/about/goodies/

<a href="http://pinterest.com/pin/create/button/?url=http%3A%2F%2F8tut.com&media=http%3A%2F%2F8tut.com%2Fwp-content%2Fthemes%2Feztheme%2Fimages%2Flogo-big.png&description=all%20the%20good%20IT%20tutorials%20for%20all%20people%20from%20dummies%20to%20novices" class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a>


<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>