According to Frédéric, supposedly the URL syntax above for Facebook has been deprecated, even though so far it seems to be still working for me, but just in case here is the new one for future reference.
Facebook no longer supports custom parameters in
But this is not entirely correct. Well, maybe they do not support or endorse them, but custom parameters can be used if you know the correct names. These include:
- URL (of course) →
- custom image →
- custom title →
- custom quote →
- custom description →
For instance, you can share this very question with the following URL:
page_title=[TITLE]&img_title=[TITLE]&img_width=[IMG WIDTH]img_height=[IMG HEIGHT]
This a great list listing most popular social services but I have struggled finding what the syntax for an email button should be like. If you are a developer, you are most likely familiar with syntax for an email link. What you need to accomplish the desired outcome, your markup should looks something along these lines:
<a href="mailto:?subject=[TITLE]&body=Check out this site I came across
I’ve been just recently asked if I knew about a way to create a “follow” buttons without any plugin. So far I’ve only looked into Twitter’s syntax for a follow button and this is what I got:
region=follow_link&screen_name=[YOUR TWITTER HANDLE]&tw_p=followbutton"
[URL]/®ion=follow_link&screen_name=[YOUR TWITTER HANDLE]&tw_p=followbutton',
'Follow @[YOUR TWITTER HANDLE]']);">Follow @[YOUR TWITTER HANDLE]</a>
Having this site in WordPress, I wanted to test it of course. Using WordPress codex functions, all I had to do was to substitute the [TITLE] with:
<?php print(urlencode(the_title())); ?>
…and [URL] with:
<?php print(urlencode(get_permalink())); ?>
I hope you find this information helpful for creating social media buttons with custom icons. Feel free to let me know in comments below.