Opened 5 years ago

Last modified 3 years ago

#1042 new enhancement

Embed Open Graph data into relevant pages

Reported by: Matt Molyneaux Owned by:
Priority: trivial Milestone:
Component: programming Keywords: small
Cc: icewater Parent Tickets:

Description

The Open Graph Protocol is used by a number of websites (such as Diaspora) to fetch thumbnails, descriptions, previews, etc. of media linked to in posts and comments.

I think this only requires a template change - all needed data should be in context at render time.

Subtickets

Change History (9)

comment:1 Changed 5 years ago by Matt Molyneaux

Summary: Embed Open Graph data into relavant pagesEmbed Open Graph data into relevant pages

comment:2 Changed 5 years ago by Christopher Allan Webber

Could someone help clarify something for me? This says "We've based the initial version of the protocol on RDFa". Does this mean this really is RDFa, or that it's some fork of that standard? It looks like this is a specific namespace and vocabulary, right? (I wonder why not reuse some existing vocabularies... hm. But still, good if it's RDFa based...)

I'm interested in increasing RDFa support in our pages.

comment:3 Changed 5 years ago by Matt Molyneaux

Yes, it does seem to be a bit NIH, and it only has three users/consumers (Diaspora, Facebook, and Bing) as far as I can see.

Bing also supports RDFa, see here

comment:4 Changed 5 years ago by icewater

mediagoblin and diaspora* users have in common the desire to host/control their own information - seems like a natural fit. Is there any reason not to add support for Open Graph?

comment:5 Changed 5 years ago by Matt Molyneaux

  1. No one seems to be using it other than those mentioned in comment 3
  2. It looks a bit like Facebook took RDFa and turned it into their own thing
  3. Diaspora also supports oEmbed, which might work better for this use-case

However, don't take this as a decision. There is much to discuss!

(also, patches welcome ☺)

comment:6 Changed 5 years ago by Christopher Allan Webber

http://rdfa.info/ mentions Open Graph Protocol, so presumably it is RDFa, just using a specific vocabulary.

comment:7 Changed 5 years ago by icewater

patches

I'm not familiar with mediagoblin, or git, or open graph / oembed for that matter, but I have some pyramid/pylons/svn experience.

oEmbed

I don't think this would currently work. diaspora* whitelists oEmbed only for specific sites (youtube, vimeo, soundcloud, mixcloud and dailymotion) due to security concerns. It supports link previews for any web page that provides the necessary Open Graph meta tags.

Last edited 5 years ago by icewater (previous) (diff)

comment:8 Changed 5 years ago by Christopher Allan Webber

Cc: icewater added

I'm not familiar with mediagoblin, or git, or open graph / oembed for that matter, but I have some pyramid/pylons/svn experience.

That's more than enough to get started! See the HackingHowto to get a development instance up and running, and git workflow for tips on contributing code.

I don't think this would currently work. diaspora* whitelists oEmbed only for specific sites (youtube, vimeo, soundcloud, mixcloud and dailymotion) due to security concerns. It supports link previews for any web page that provides the necessary Open Graph meta tags.

Okay, interesting. I guess I find it curious how oEmbed is a decentralized in theory, centralized in practice system ;)

comment:9 Changed 3 years ago by Ben Sturmfels

Keywords: small added; bitesize removed
Note: See TracTickets for help on using tickets.