Software, your way.
How To Get Good Custom Software
(Download)
(PDF)
burger menu icon
WillMaster

WillMaster > LibraryWebsite Development and Maintenance

FREE! Coding tips, tricks, and treasures.

Possibilities weekly ezine

Get the weekly email website developers read:

 

Your email address

name@example.com
YES! Send Possibilities every week!

Twitter and Facebook Share Links

The easiest way to invite others to share your content on social sites is to link directly.

There is no need to sign up for third-party services that require your reader to give the third-party service their username and password. Instead, link directly to the social site and let the social site ask for login details.

Below are the share link formats for Twitter and Facebook. Twitter has two versions. Notes follow the formats.

Format for Twitter (version 1) direct share link:
https://twitter.com/intent/tweet?text=[MESSAGE]

Format for Twitter (version 2) direct share link:
https://twitter.com/intent/tweet?text=[MESSAGE]&url=[URL]

Format for Facebook direct share link:
https://www.facebook.com/sharer.php?u=[URL]

Notes:

Twitter notes –

If using version 1, replace [MESSAGE] with the twitter text message. Maximum 140 characters (except URLs are considered to be only 20 characters even when longer).

If using version 2, replace [MESSAGE] with maximum of 120 characters and replace [URL] with a URL, presumably to a page with more information.

Facebook notes –

Replace [URL] with the URL of the page being shared.

Facebook will do a discovery to verify the page exists, to obtain an intro, and to obtain images. The user is then invited to type a message and to select the appropriate image.

Why I Do Share Links This Way

Some websites use third-party services for their sharing links. The third-party services require the site visitor's username and password to do the tweet or post the message.

No, I won't give third-party services like that my login information.

The links described above bypass all such third-party services. No need to sign up for them and make your site visitors vulnerable to their discretion.

Instead, just link directly to the social site itself. The easiest way.

These articles describe ways to automate the link generation:

Tweet and Share Buttons Your Way shows how to automatically insert share buttons into web pages without using Twitter or Facebook's API.

Generate Tweet and Share Links for Newsletters, Forums, Et Cetera has a generator to create share links for use in emails and newsletters, forums, blog comments and so forth.

Will Bontrager

Was this article helpful to you?
(anonymous form)

Support This Website

Some of our support is from people like you who see the value of all that's offered for FREE at this website.

"Yes, let me contribute."

Amount (USD):

Tap to Choose
Contribution
Method

All information in WillMaster Library articles is presented AS-IS.

We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.

How Can We Help You? balloons
How Can We Help You?
bullet Custom Programming
bullet Ready-Made Software
bullet Technical Support
bullet Possibilities Newsletter
bullet Website "How-To" Info
bullet Useful Information List

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2024 Will Bontrager Software LLC