PageSharer

Extends Object. The PageSharer object enables you to generate social media share links from Page, Category, Event or Product objects.

Instantiation

Accessing a PageSharer Object is generally done from a Page.share(), Category.share() or Product.share() method.


<a href="{{ page.share().facebook }}">Share on Facebook</a>


Construct parameters
page

Type Page, Category or Product

The page, category or product to share.



Methods
digg()

Returns String

The digg social share link includes the title, and url of the shared page.

facebook()

Returns String

Generates a facebook share link.

googlePlus()

Returns String

Generates a googlePlus share link.

linkedIn()

Returns String

Generates a linkedIn share link including title and url of the page.

pinterest()

Returns String

Generates a pinterest share link including a the page thumbnail, url and description.

reddit()

Returns String

Generates a reddit share link including url and title.

stumbleUpon()

Returns String

Generates a StumbleUpon share link including url and title.

tumblr()

Returns String

Generates a Tumblr share link including canonicalUrl, title and caption.

twitter()

Returns String

Generates a Twitter share link including url, text and your Twitter account username if set.