当前位置:网站首页>Open graph protocol

Open graph protocol

2022-07-05 04:01:00 crayon-shin-chan

file :The Open Graph protocol

1. brief introduction

Open Graph The protocol enables any web page to become a rich object in the social graph .

This is in Facebook It is used to allow any web page to have Facebook The same function as any other object on .

2. Basic metadata

To turn a web page into a graphic object , You need to add basic metadata to the page .

This is based on  RDFa The initial version of the protocol , This will place additional <meta> label .

The four required attributes of each page are :

  • og:title: The title of the object should appear in the diagram , for example “The Rock”.
  • og:type: Type of object , Such as “video.movi​​e”. According to the type specified , Other attributes may be required .
  • og:image: The image that should represent your object in the diagram URL.
  • og:url: Object specification URL, Will be used in the drawing as its permanent ID 
<html prefix="o
原网站

版权声明
本文为[crayon-shin-chan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050359580305.html