Sunday, June 3, 2012

Share a link with social networks

Share a link with Facebook

[sourcecode language="html"]
<a name="fb_share" type="icon" share_url="http://codezone4.wordpress.com"></a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript">
</script>
[/sourcecode]

Share a link with Twitter

[sourcecode language="html"]
<a href="http://twitter.com/share?text=An Awesome Link&url=http://codezone4.wordpress.com">
Share This on Twitter</a>
[/sourcecode]

No comments:

Post a Comment

How to enable CORS in Laravel 5

https://www.youtube.com/watch?v=PozYTvmgcVE 1. Add middleware php artisan make:middleware Cors return $next($request) ->header('Acces...