Skip to content
This repository was archived by the owner on Mar 7, 2022. It is now read-only.

Commit 85d0524

Browse files
committed
Merge pull request #31 from TheWrongAlice/alice2
Added share caption to readme
2 parents 731d6cc + 0cc1410 commit 85d0524

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Readme.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,25 @@ Share me
170170
</a>
171171
```
172172

173+
####Sharing caption
174+
When sharing to Facebook using `socialshare-type="feed"` you can optionally add a caption.
175+
If a caption is not provided, facebook will show the url instead.
176+
_(more details at https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.4)_
177+
178+
```html
179+
<a href="#"
180+
socialshare
181+
socialshare-provider="facebook"
182+
socialshare-type="feed"
183+
socialshare-via="145634995501895"
184+
socialshare-text="720kb"
185+
socialshare-caption="720kb is awesome"
186+
socialshare-url="http://720kb.net"
187+
socialshare-redirect-uri="https://developers.facebook.com/tools/explorer">
188+
Share me
189+
</a>
190+
```
191+
173192
####Sharing hashtags
174193
You can set the hashtags to share using the `socialshare-hashtags=""` attribute (for example, you will use it for twitter)
175194

0 commit comments

Comments
 (0)