Created
August 30, 2013 14:09
-
-
Save floz/6390251 to your computer and use it in GitHub Desktop.
Facebook - Share button with custom data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#" onclick=" | |
window.open( | |
'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent('http://urlofthepage.com/share/'), | |
'facebook-share-dialog', | |
'width=626,height=436'); | |
return false;" target="_blank"> Share </a> | |
<html> | |
<head> | |
<title></title> | |
<meta property="og:title" content="Title"/> | |
<meta property="og:url" content="http://urlofthepage.com/share"/> | |
<meta property="og:image" content="http://urlofthepage.com/share/share.png"/> | |
<meta property="og:description" content="Lorum Ipsum"/> | |
<script type='text/javascript'> | |
window.location = "http://urlofthepage.com/"; | |
</script> | |
</head> | |
<body> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment