Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

Implement settings for adding Open Graph meta

Open k0nsl opened this issue 11 years ago • 6 comments

Would it interest anybody other than me to have implementation of open graph meta tags (Facebook) and possibly even Twitter "cards"?

I could not find any earlier discussion about this.

Best wishes, -k0nsl

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

k0nsl avatar Sep 23 '15 17:09 k0nsl

Sounds interesting, what is necessary to implement this?

rodrigok avatar Sep 23 '15 20:09 rodrigok

@k0nsl could you please give us more info on this?

gmsecrieru avatar Oct 10 '15 01:10 gmsecrieru

I encountered a problem where Facebook misidentifies my rocket.chat website's title despite the Site Name being correctly set. Facebook is misidentifying it because it wants og:title and og:url properties explicitly set according to their debugger here: https://developers.facebook.com/tools/debug/

Screen: image

That debugger also shows that when FB tries to determine the site name, it comes up with Rocket.Chat and I don't know where it's getting that from.

Here is the ogp website: http://ogp.me/ As far as I can tell, there needs to be meta tags for url and sitename in the header:

From the site:

Basic Metadata To turn your web pages into graph objects, you need to add basic metadata to your page. We've based >the initial version of the protocol on RDFa which means that you'll place additional tags in the of your web page. The four required properties for every page are:

og:title - The title of your object as it should appear within the graph, e.g., "The Rock". og:type - The type of your object, e.g., "video.movie". Depending on the type you specify, other properties may also be required. og:image - An image URL which should represent your object within the graph. og:url - The canonical URL of your object that will be used as its permanent ID in the graph, e.g., "http://www.imdb.com/title/tt0117500/". As an example, the following is the Open Graph protocol markup for The Rock on IMDB:

<html prefix="og: http://ogp.me/ns#">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
...
</head>
...
</html>

garg avatar Jan 24 '16 01:01 garg

:+1:

IQ2022 avatar Jan 24 '16 03:01 IQ2022

I think we can close the issue, there is now a meta section in admin.

pierreozoux avatar Mar 28 '17 13:03 pierreozoux

(y)

SupRavII avatar Mar 21 '18 15:03 SupRavII