简体   繁体   中英

How to process links like in common chat apps?

I want to process links like most of chat apps by adding related pictures or text to the link.

PS: the picture is not necessarly in the link, ex: www.dummydata.png

this image can be helpful:

在此输入图像描述

It's called The Open Graph protocol

You basically need to add some meta tags to your content.
If you manage the server side, you'll be able to support it. If not, it's not up to you.

See an example

To retrieve theses tags you can use this library. Just design a view that similar to the one in the picture and populate it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM