Simple Social Share Button

This post explains a simple way to share the post on social media without any API.

Just you following Urls

url should be in Url Encoded format:

Example:

Url:   https://www.codebucket.in/

Url Encode : https%3A%2F%2Fwww.codebucket.in%2F

Encoding can be easily done by various method:-

Online: -https://www.urlencoder.org/

Php:- use urlencode()

JavaScript:- use encodeURI()

Twitter

Example:

Output:

Share

Google

Example:

Output:

Share

PinInterset

Give Url of the image.

Example:

https://in.pinterest.com/pin/create/button/?url=https%3A%2F%2Fwww.androidhive.info%2Fandroid-databinding-in-recyclerview-profile-screen%2F&recyclerview-databinding-example.jpg

Output:

Share

Facebook

Example:

Output:

Share

Instagram

 

 

 

 

Posted in Info.