share stuff..
<ul>
<li><a href='https://twitter.com/intent/tweet?text={{urlencode($post->name)}}&url={{Request::fullUrl()}}&via={{@$application->getSetting('Twitter Username')}}' class='ss-twitter'></a></li>
<li><a href='{{Request::fullUrl()}}' class='ss-like fb-lk'></a></li>
<li><a href='{{Request::fullUrl()}}' class='ss-facebook fb-share'></a></li>
<li><a href='{{Request::fullUrl()}}' class='ss-mail'></a></li>
</ul>
<script>
$('.tw-share').click(function(e){
window.open($(this).attr('href'), 'name', 'toolbar=no, status=no, resizable=no, scrollbars=no, location=no, height=480, width=640');
});
$('.fb-lk').click(function(e){
e.preventDefault();
var $me = $(this);
FB.ui({
method: 'share_open_graph',
action_type: 'og.likes',
action_properties: JSON.stringify({
object: $me.attr('href'),
})
}, function(response){});
});
$('.fb-share').click(function(e){
e.preventDefault();
var $me = $(this);
FB.ui({
method: 'share',
href: $me.attr('href'),
}, function(response){});
});
</script>
////////////
{{--facebook OG stuff:--}}
@if(@$application->getSetting('Facebook App ID'))
<meta property="fb:app_id" content="{{$application->getSetting('Facebook App ID')}}" />
@endif
<meta property="og:type" content="article" />
<meta property="og:url" content="{{Request::fullUrl()}}" />
<meta property="og:title" content="{{$post->name}}" />
<meta property="og:image" content="{{$post->featured_image}}" />
<meta property="og:description" content="{{$post->excerpt}}" />
<meta property="og:site_name" content="{{@$application->name}}" />
<meta property="og:updated_time" content="{{@$post->updated_at}}" />
<?php
$related = $post->getRelated(NULL, 3);
?>
<meta property="og:see_also" content="{{@$related[0]->slug}}" />
<meta property="article:author" content="{{@$post->author->username}}" />
<meta property="article:published_time" content="{{@$post->published_at}}" />
<meta property="article:modified_time" content="{{@$post->updated_at}}" />