ImpSdk.social.showSharePopup

developed by Timmy Luong
*To remove CSS used only by the docs, the example component is in a separate page
Note: In Firefox, the pop-up generated by Facebook will not render the message box if the description is too short. The minimum length is a certain pixel value that is roughly equivalent to 46 characters long (depending on the width of the characters). This issue affects only Firefox. The exact same description will render properly on Chrome.

ImpSdk.social.showSharePopup(options, styles, target, callback)

Parameter Type Description
options Object The properties for the social platforms. See the individual social platforms for details of the properties. The options passed in here must be the aggregate of all properties required by every social platform.
styles Object By default the styles are set. To use the default modal styles, pass in {} which is an empty object. To use custom styles, pass in a customized styles object. See more details at the modal styling page.
target String The element's id attribute. Note: showSharePopup requires its own empty element tag with an id attribute set to target. When you create your button or widget, please ensure that showSharePopup's target is its own empty element such as a div or a span.

Optional Advanced Usage: The empty element holding our target id may be reused for multiple sharePopopup components. The modal component itself is not tied to any button or icon image. The modal component is invisible on the page when in a closed state.

For example: we have an empty <div id="my-show-share-popup"></div>. We can then make many buttons with the share popup functionality at different places on the page. All of the buttons can reference this same target div's id when setting their click handlers to call showSharePopup().
callback Function The required callback function passed down to social sharing functions (facebook, twitter, etc) for error handling.