Bug 9855 - Add OpenGraph (Facebook preview) tags to pages
Summary: Add OpenGraph (Facebook preview) tags to pages
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Owen Leonard
QA Contact:
URL:
Keywords:
: 23935 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-03-20 00:53 UTC by Aaron Wells
Modified: 2023-12-18 23:15 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Wells 2013-03-20 00:53:26 UTC
If you take a URL and paste it into your Facebook feed, Facebook pops up a little description of the site, and a "preview" icon for the site.

Facebook can scrape this info from your page, but you can also give it specific info by using "OpenGraph" meta tags in the head of your page. Theoretically OpenGraph is an open standard, but in practice I think only Facebook's using it. :)

The format is pretty simple, it looks like this (taken from the Mahara page templates):

<meta property="og:title" content="{$PAGETITLE}" />
<meta property="og:description" content="{$sitedescription4facebook}" />
<meta property="og:image" content="{$sitelogourl4facebook}" />
Comment 1 Aaron Wells 2013-03-20 00:55:54 UTC
See also:

The Facebook documentation for OpenGraph: https://developers.facebook.com/docs/opengraphprotocol/

The Facebook debugger, which lets you test what Facebook would display as the "preview" for any given URL: https://developers.facebook.com/tools/debug

The actual site for the OpenGraph standard: http://ogp.me/
Comment 2 David Cook 2022-08-22 02:26:15 UTC
This would actually be pretty handy for public libraries I think.
Comment 3 Owen Leonard 2023-12-18 17:48:00 UTC
*** Bug 23935 has been marked as a duplicate of this bug. ***
Comment 4 Christopher Brannon 2023-12-18 23:15:10 UTC
It would be pretty darn nice if we could make our linked pages look nicer.  There has been some improvement (I think), but it would be great to have a little more control.