Back to home

Share Button (class exported as FBShareComponent)

The Share button lets people add a personalized message to links before sharing on their timeline, in groups, or to their friends via a Facebook Message.

Official Facebook documentation for this class can be found here.

link Usage
<fb-share href="https://github.com/zyra/ngx-facebook-sdk/"></fb-share>
link Inputs link href (string)

The absolute URL of the page that will be shared. Defaults to the current URL.


link layout (string)

Selects one of the different layouts that are available for the plugin. Can be one of box_count, button_count, button. Defaults to icon_link.


link mobileIframe (boolean)

If set to true, the share button will open the share dialog in an iframe (instead of a popup) on top of your website on mobile. This option is only available for mobile, not desktop. Defaults to false.


link size (string)

The button is offered in 2 sizes i.e. large and small. Defaults to small.