Skip to main content

Provide some additional Open Graph meta tag to your Plone site, so share items on Facebook will be simpler

Project description

Introduction

Are you commonly sharing contents from your Plone site or a site page to a Facebook account?

When you use the nice Facebook sharing interface, you have a simple way to customize additional data for the item that will be published (mainly: choose a proper image from the remote page).

However when trying to do this automatically (e.g: you are publishing the link in a Twitter account that also feed a Facebook page) Facebook is choosing an image for you… and often this is not the image you want.

How can you solve this? In general you can provide some additional meta tag information using Open Graph standard, customizing many aspect of the way of sharing contents on Facebook.

Product detail

Installing collective.fbshare product and add some additional meta tags in the head section of your site.

Plone site metas

When sharing the site root, you’ll get:

og:type

Always website

og:url

The URL to the site

og:image

See next section

og:title

The name of the site

og:description

The description of the site

When sharing site content’s you’ll get:

og:type

Always article

og:url

The URL to the content

og:site_name

The name of the Plone site

og:image

See next section

og:title

The title of the content

og:description

The description of the content

article:published_time

The publication date of the content (when present)

article:expiration_time

The expiration date of the content (when present)

article:author

A link to the creator’s page. This will be used only when you choose to display the about info of site user’s

article:tag

List of content tags

About images

In the site control panel you can access a new configuration panel named “Open Graph sharing settings”. From there you can:

  • provide a custom image content to be used as og:image

  • choose to use the site’s logo as og:image

Dependencies

Tested on:

  • Plone 4.2

  • Plone 3.3

On Plone 3.3 you need to configure properly plone.app.registry dependencies and upgrade the default version used of plone.z3cform.

Credits

Developed with the support of S. Anna Hospital, Ferrara; S. Anna Hospital supports the PloneGov initiative.

S. Anna Hospital logo

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Changelog

0.1.0 (2012-07-25)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.fbshare-0.1.0.zip (37.8 kB view details)

Uploaded Source

File details

Details for the file collective.fbshare-0.1.0.zip.

File metadata

File hashes

Hashes for collective.fbshare-0.1.0.zip
Algorithm Hash digest
SHA256 a6e326b323a252e3c9b1372d8ba8f982f58d32f37a1077131256e046fc48818c
MD5 0b77ee758080d383568058fef7ad7997
BLAKE2b-256 e4b8319432f635992df36447d045e5af3b19544e12c5a277d48b8e631401243b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page