social.sokoll.com

Developer question: Does diaspora use meta tags?


Hi all, i'm an old developer but new to the web, and wanted to ask: Does diaspora use meta tags to preview content from links entered? Or are there plans to do this in the future?

For twitter i found this for example:
<meta name="twitter:title" content="European Travel Destinations "> 
<meta name="twitter:description" content=" Offering tour packages for individuals or groups."> 
<meta name="twitter:image" content=" [url=http://euro-travel-example.com/thumbnail.jpg]http://euro-travel-example.com/thumbnail.jpg[/url]"> 
<meta name="twitter:card" content="summary_large_image">

Reference

Is there something similar that diaspora can use? (I'm asking because i'm working on a web app that could use this feature)

#help #diaspora #question #help-wanted
Diaspora uses existing meta tags, e.g.

Just look at the Page Source of this article and this other article where yours is linked.
If you mean does it pull the meta tags out of linked web pages and use the information to provide a title and preview, then the answer is mostly yes. There are some sites (e.g. The Guardian) that don't seem to implement Open Graph headers in the way that D* interprets them.
Thank you both!

I found this on the wiki also, so it seems that my web app has to be on a whitelist for this to work unfortunately
Sunyata just ask one of the developers like @Dennis Schubert or @Benjamin Neff. I think they will help you. :-)
Does diaspora use meta tags to preview content from links entered?
Yes, OpenGraph. og:title, og:description, og:url, and og:image. We also support OEmbed for specific providers.
@Dennis Schubert Is The Guardian website on the whitelist? I notice that they embed OG headers in their pages, but images never show up, even on their own articles posted on D*. I'm pretty sure they use og:image, but the URL doesn't actually lead to a jpeg or other image type; I wonder if the URL leads to some kind of image provider service that returns a jpeg. My tablet browser doesn't let me view source, so I can't provide examples atm.