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
Page
| Category
| Product
The page, category or product to share. |
Methods |
---|
digg()
String
The digg social share link includes the title, and url of the shared page. |
facebook()
String
Generates a facebook share link. |
googlePlus()
String
Generates a googlePlus share link. Depecrecated, but included for backwards compatibility. |
linkedIn()
String
Generates a linkedIn share link including title and url of the page. |
pinterest()
String
Generates a pinterest share link including a the page thumbnail, url and description. |
reddit()
String
Generates a reddit share link including url and title. |
stumbleUpon()
String
Generates a StumbleUpon share link including url and title. |
tumblr()
String
Generates a Tumblr share link including canonicalUrl, title and caption. |
twitter()
String
Generates a Twitter share link including url, text and your Twitter account username if set. |