[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Open graph Tags



Hi Martin,

That is something I hadn't considered. Is there an alternative that you use
to control how links display on Facebook?

I must admit I'm not an expert on the topic.

Thanks,
James

On Fri, Mar 1, 2019 at 2:43 PM <martin.braendle at id.uzh.ch> wrote:

> Hi James,
>
> we decided against using Open Graph tags because they do not validate
> against HTML5.
>
> Best regards,
>
> Martin
>
> --
> Dr. Martin Br?ndle
> Zentrale Informatik
> Universit?t Z?rich
> Stampfenbachstr. 73
> CH-8006 Z?rich
>
> [image: Inactive hide details for "James Kerwin via Eprints-tech"
> ---28.02.2019 17:36:00---Hi All, Has anybody attempted to use Open Gr]"James
> Kerwin via Eprints-tech" ---28.02.2019 17:36:00---Hi All, Has anybody
> attempted to use Open Graph tags in EPrints to facilitate
>
> Von: "James Kerwin via Eprints-tech" <eprints-tech at ecs.soton.ac.uk>
> An: <eprints-tech at ecs.soton.ac.uk>
> Datum: 28.02.2019 17:36
> Betreff: [EP-tech] Open graph Tags
> Gesendet von: <eprints-tech-bounces at ecs.soton.ac.uk>
> ------------------------------
>
>
>
> Hi All,
>
> Has anybody attempted to use Open Graph tags in EPrints to facilitate
> sharing links on social media?
>
> I'm attempting it now and I can get it to work on EPrint abstracts, but
> not on the repository home page. On the latter I'm getting a title
> different to my test title and an image that isn't the one I stipulate.
>
> For example, my Test versions of the og tags are:
>
> <meta property="og:title"  content="zebra"/>
> <meta property="og:image" content="
> *https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.liverpool.ac.uk%2Fmedia%2Flivacuk%2Fliverpool-advantage.jpg*&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca50ef4e76af544fbccaa08d69e608a40%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=%2BJ3m9zc8qY1tXYF3YzUVqQQA5u67TGZczWtPzg9SQ5w%3D&amp;reserved=0
> <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.liverpool.ac.uk%2Fmedia%2Flivacuk%2Fliverpool-advantage.jpg&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca50ef4e76af544fbccaa08d69e608a40%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=q%2FfEvuoQ0Xpxa3%2FXLte4CkmUxHp1eJLXBsw9ngC5XMo%3D&amp;reserved=0>
> "/>
>
> I have included these in my default.xml template. This allows the link to
> be shown with the correct title and image for abstracts. Unfortunately it
> doesn't work for the home page, so I inserted these tags into my
> index.xpage which doesn't seem to have worked either. When sharing a link
> to the home page it shows me the title of the page that exists between the
> <title></title> tags in default.xml and the first image that occurs in
> index.xpage.
>
> I've tried putting the OG tags in different places, restarting the server
> after changes and removing the previously mentioned <title></title> tags to
> see what happens and no success so I'm assuming it might be a quirk of
> EPrints? Or am I putting these in the wrong place? I appreciate it's a
> broad question as we all have different tags etc in our various files, but
> if anybody can shed any light on this I would be really grateful.
>
> When I started this earlier I thought it wouldn't take long as it's not
> particularly difficult, how wrong I was!
>
> Thanks,
> James*** Options:
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca50ef4e76af544fbccaa08d69e608a40%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=Yu8sjVOO%2FaAdwAjOkvCGbUkh%2Fh4HNHU2bT3pBHOOKCU%3D&amp;reserved=0
> *** EPrints community wiki: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca50ef4e76af544fbccaa08d69e608a40%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=wz0lRi%2FdlgP%2Bc3hOGKZHHAeDsmYCeHZBLhOfQwNlnnI%3D&amp;reserved=0
> *** EPrints developers Forum: https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca50ef4e76af544fbccaa08d69e608a40%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=vVMMKHAchNy9f1jVv5RLOZtPVLrJIyq%2B33LjExeQJ0Q%3D&amp;reserved=0
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20190301/d031f3e9/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20190301/d031f3e9/attachment.gif