社交媒体分享链接的标题、图片还有描述是怎么做到的 - Open graph protocol

以前看到别人分享的链接在微信上是带图片和标题甚至还有简短描述的,但是没去想过这是怎么做到的。
直到最近偶然了解到 Open Graph Protocol 这个协议。

概括地说:Open Graph 协议就是为了社交媒体诞生的,最初由Facebook提出,现在许多社交媒体都能很好地支持这个协议。
为什么社交媒体需要这样一个协议呢?可以看看 The Open Graph Protocol 官方网页上的说明:

The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook.

Open Graph 协议可以使任何网页在社交媒体上变成富媒体,举例来说,Facebook使用了这项协议才变得任何网页在Facebook上都能表现出相似的功能。

While many different technologies and schemas exist and could be combined together, there isn’t a single technology which provides enough information to richly represent any web page within the social graph. The Open Graph protocol builds on these existing technologies and gives developers one th

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值