Skip to content

Instantly share code, notes, and snippets.

@rob-bar
Last active December 10, 2015 04:58
Show Gist options
  • Save rob-bar/4384846 to your computer and use it in GitHub Desktop.
Save rob-bar/4384846 to your computer and use it in GitHub Desktop.
#snippet #php #view share codes
<?php
// Facebook
echo("http://www.facebook.com/sharer.php?s=100&amp;&p[title]=" . urlencode(TITLE) . "&p[summary]=" .
urlencode(DECRIPTION) . "&p[url]=" . urlencode(URL) . "&t=&v=3&p[images][0]=" . urlencode(IMAGE));
// Linked in
echo("http://www.linkedin.com/shareArticle?mini=true&url" . urlencode(URL) . "=&title" . urlencode(TITLE) . "=&summary=" . urlencode(SUMMARY));
// Twitter
echo("http://twitter.com/home?status=" . urlencode(TWEET));
// Delicious
echo("http://del.icio.us/post?url=" . urlencode(URL));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment