ImpSdk.social.shareFacebook

developed by Timmy Luong and Catherine Lau
When invoked, a popup window will appear allowing a user to share content from your site on his/her Facebook Timeline.
**Breaking Changes**

The previous version of ImpSdk.social.shareFacebook (v.0.*) did not support inclusion of an image when sharing a link on Facebook. The revised method utilizes the latest version of Facebook SDK which provides this support and:

  1. accepts an options object that has modified property names (listed below),
  2. accepts a callback function as a second parameter,
  3. displays Facebook sharing as a separate popup window instead of a full-page display in a new tab. Popups will need to be enabled in the browser for that particular hostname.

Demo:

with picture:
without picture:

ImpSdk.social.shareFacebook(options, callback)

options object
required properties Type Description
link string The url/link to attach to the post (ie. campaign link).
optional properties
picture string The url of the image to attach with the post. If none is supplied, defaults to image based on meta data from the link being shared.
name string The headline/title for the link being shared. Defaults to meta data from shared link.
description string A description of the url being shared (appears beneath post headline). Defaults to meta data from shared link.