Sharing on the Web

You can add quick and simple ways for people to post content from your website to Facebook. When people share from your site, your site gets attribution as a link to your site embedded in the shared post.

People can share different types of content from the web, though basic links are the most common:

  • Links - Share articles, photos, videos and other content as a URL that points to the page where your content lives.
  • Status Updates - Share plain text status updates. These don't link to specific content from your site but do attribute the post to your site. Requires using the Feed dialog.
  • Open Graph Stories - You can use Open Graph to let people publish rich, structured stories using your app, such as Julie read a book on Goodreads. See Open Graph Stories.


Open Graph Markup

Before you enable sharing, you should mark up your page's HTML with Open Graph tags.

This helps make sure that when people share from your site, your content appears the way you want on Facebook, with a title, description, and image thumbnail.

If you have a mobile subdomain, you can optimize your content by Optimizing for a Mobile Subdomain.

Note: If your app share links to the iTunes or Google Play stores, we do not post any images or descriptions that you specify in the share. Instead we post some app information we scrape from the app store directly with the Webcrawler. This may not include images. To preview a link share to iTunes or Google Play, enter your URL into the Sharing Debugger.

Learn more

Share Content

You can enable sharing from your website using social plugins or your own UI that opens Facebook sharing dialogs.

Social Plugins

If you want to use an end-to-end solution for enabling sharing on the web, the most relevant of the Social Plugins are the:

  • Share Button, which gives people the ability to choose where they want to share, including in groups and private messages on Messenger
  • Quotes plugin, which will let people highlight content on your page and add that as a part of their link share.
  • Send Button, if you believe that people will want the top-line option to send messages on Messenger

Using Web Dialogs

If a plugin doesn't work for your site, you also have the option of opening our dialogs directly. You will create a button on your site and call the dialog. Most commonly, you will use either:

  • Share dialog, which gives people the most flexibility. They can choose where they want to share, including in groups and private messages on Messenger
  • Send dialog

In rare instances, you may need other methods. If you want to let someone post a plain text status update without a link attachment, you should use the Feed dialog. If you're sharing photos or videos rather than links, you will need to create a custom interface that lets people post to their own timeline, which requires implementing Facebook Login and requesting the publish_actions permission. For more info see Publishing with the Graph API.