/    Sign up×
Community /Pin to ProfileBookmark

Social Media Sharing

Good Morning,

I’m trying to find any html / JavaScript tutorials for how to add buttons to your page which share the page on social media.

I can find many examples of the buttons, which is very easy.,

I want something so what Facebook or Twitter is clicked it opens the app / webpage for that service and allows you to post my page?

Can anyone help?

to post a comment
Full-stack DeveloperHTMLJavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@nexstairNov 30.2021 — **For twitter, you can use this:**

<a id="twitter_link" target="_blank" href="https://twitter.com/share?text=Your_Text_Here&amp;url=Your_URL"><i class="fa fa-twitter"></i> Twitter</a>

**For Facebook, you can use this:**

<a id="facebook_link" target="_
blank" href="https://www.facebook.com/sharer/sharer.php?u=Your_URL&amp;quote=Your_Text_Here"><i class="fa fa-facebook"></i></a>

For More Help Visit __[Link deleted by moderator...continued abuse will result in banning without further notice]__
×

Success!

Help @singaporeDude spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...