Have a Snippet?

Keep, track and share your code snippets with your friends



PHP: Custom social sharing URLs Share on Vkontakte

Custom social sharing URLs for the most popular social networks

$facebook_link = "http://www.facebook.com/sharer.php?u=" . urlencode($URL) . "&t=" . urlencode($TITLE) . "&src=sp";
$twitter_link = "http://twitter.com/home/?status=" . urlencode($URL . " - " . $TITLE);
$googleplus_link = "https://plusone.google.com/_/+1/confirm?hl=en&url=" . urlencode($URL);
$reddit_link = "http://reddit.com/submit?url=" . urlencode($URL) . "&title=" . urlencode($TITLE);
$vkontakte_link = "http://vkontakte.ru/share.php?url=" . urlencode($URL) . "&title=" . urlencode($TITLE);


Tag: HTML, Social, URL, Sharing, , , , PHP

0 Comments