- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的用例
我正在为 session 建立一个网站,使用 opengraph
Facebook 和 Twitter 共享的属性。
validator说 og:type
字段是强制性的:
所以,我添加了一个字段:
<meta property="og:type" content="..." />
In order for your object to be represented within the graph, you need to specify its type. This is done using the og:type property:
<meta property="og:type" content="website" />
When the community agrees on the schema for a type, it is added to the list of global types.
最佳答案
og:Type Lists Of Objects
apps.saves An action representing someone saving an app to try later.
article This object represents an article on a website. It is the preferred type for blog posts and news stories.
book This object type represents a book or publication. This is an appropriate type for ebooks, as well as traditional paperback or hardback books. Do not use this type to represent magazines
books.author This object type represents a single author of a book.
books.book This object type represents a book or publication. This is an appropriate type for ebooks, as well as traditional paperback or hardback books
books.genre This object type represents the genre of a book or publication.
books.quotes Returns no data as of April 4, 2018.
An action representing someone quoting from a book.
books.rates Returns no data as of April 4, 2018.
An action representing someone rating a book.
books.reads Returns no data as of April 4, 2018.
An action representing someone reading a book.
books.wants_to_read Returns no data as of April 4, 2018.
An action representing someone wanting to read a book.
business.business This object type represents a place of business that has a location, operating hours and contact information.
fitness.bikes Returns no data as of April 4, 2018.
An action representing someone cycling a course.
fitness.course This object type represents the user's activity contributing to a particular run, walk, or bike course.
fitness.runs Returns no data as of April 4, 2018.
An action representing someone running a course.
fitness.walks Returns no data as of April 4, 2018.
An action representing someone walking a course.
game.achievement This object type represents a specific achievement in a game. An app must be in the 'Games' category in App Dashboard to be able to use this object type. Every achievement has a game:points value associate with it. This is not related to the points the user has scored in the game, but is a way for the app to indicate the relative importance and scarcity of different achievements: * Each game gets a total of 1,000 points to distribute across its achievements * Each game gets a maximum of 1,000 achievements * Achievements which are scarcer and have higher point values will receive more distribution in Facebook's social channels. For example, achievements which have point values of less than 10 will get almost no distribution. Apps should aim for between 50-100 achievements consisting of a mix of 50 (difficult), 25 (medium), and 10 (easy) point value achievements Read more on how to use achievements in this guide.
games.achieves An action representing someone reaching a game achievement.
games.celebrate An action representing someone celebrating a victory in a game.
games.plays An action representing someone playing a game. Stories for this action will only appear in the activity log.
games.saves An action representing someone saving a game.
music.album This object type represents a music album; in other words, an ordered collection of songs from an artist or a collection of artists. An album can comprise multiple discs.
music.listens Returns no data as of April 4, 2018.
An action representing someone listening to a song, album, radio station, playlist or musician
music.playlist This object type represents a music playlist, an ordered collection of songs from a collection of artists.
music.playlists Returns no data as of April 4, 2018.
An action representing someone creating a playlist.
music.radio_station This object type represents a 'radio' station of a stream of audio. The audio properties should be used to identify the location of the stream itself.
music.song This object type represents a single song.
news.publishes An action representing someone publishing a news article.
news.reads Returns no data as of April 4, 2018.
An action representing someone reading a news article.
og.follows An action representing someone following a Facebook user
og.likes An action representing someone liking any object.
pages.saves An action representing someone saving a place.
place This object type represents a place - such as a venue, a business, a landmark, or any other location which can be identified by longitude and latitude.
product This object type represents a product. This includes both virtual and physical products, but it typically represents items that are available in an online store.
product.group This object type represents a group of product items.
product.item This object type represents a product item.
profile This object type represents a person. While appropriate for celebrities, artists, or musicians, this object type can be used for the profile of any individual. The fb:profile_id field associates the object with a Facebook user.
restaurant.menu This object type represents a restaurant's menu. A restaurant can have multiple menus, and each menu has multiple sections.
restaurant.menu_item This object type represents a single item on a restaurant's menu. Every item belongs within a menu section.
restaurant.menu_section This object type represents a section in a restaurant's menu. A section contains multiple menu items.
restaurant.restaurant This object type represents a restaurant at a specific location.
restaurant.visited An action representing someone visiting a restaurant.
restaurant.wants_to_visit An action representing someone wanting to visit a restaurant
sellers.rates An action representing a commerce seller has been given a rating.
video.episode This object type represents an episode of a TV show and contains references to the actors and other professionals involved in its production. An episode is defined by us as a full-length episode that is part of a series. This type must reference the series this it is part of.
video.movie This object type represents a movie, and contains references to the actors and other professionals involved in its production. A movie is defined by us as a full-length feature or short film. Do not use this type to represent movie trailers, movie clips, user-generated video content, etc.
video.other This object type represents a generic video, and contains references to the actors and other professionals involved in its production. For specific types of video content, use the video.movie or video.tv_show object types. This type is for any other type of video content not represented elsewhere (eg. trailers, music videos, clips, news segments etc.)
video.rates Returns no data as of April 4, 2018.
An action representing someone rating a movie, TV show, episode or another piece of video content.
video.tv_show This object type represents a TV show, and contains references to the actors and other professionals involved in its production. For individual episodes of a series, use the video.episode object type. A TV show is defined by us as a series or set of episodes that are produced under the same title (eg. a television or online series)
video.wants_to_watch Returns no data as of April 4, 2018.
An action representing someone wanting to watch video content.
video.watches Returns no data as of April 4, 2018.
An action representing someone watching video content.
关于facebook-opengraph - 打开图 : List of global types,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49718112/
我已经在我的电脑上安装了 node.js,当我运行这个命令时它给了我这个错误,我该怎么办??? npm WARN config global `--global`, `--local` are dep
在 PHP 中,我想知道 GLOBAL 和 GLOBALS 之间的区别。 一些例子: print_r($GLOBALS); 最佳答案 这是与同一事物相关的两个不同事物:全局变量。 $GLOBALS -
在某些 SCSS 文件中,我看到以下内容: :global { /* ... */ } 不知道是SCSS特性还是CSS特性。我尝试搜索它,但第一眼找不到任何好的结果。 最佳答案 此运算符用于 CS
我正在考虑向 JSON 添加注释并找到 this script在处理使 JSON 有效之前将它们去除。我只是想了解如何使 JSON.minify() 函数可用? 开始于 (function(globa
在我的 React 应用程序中,我尝试使用 react-widgets package 中包含的 DateTimePicker 组件.我还通过 reactstrap 使用 Bootstrap 4 组件
全局变量的作用域是所有文件,而静态全局变量的作用域只是它所在的文件被宣布。为什么这样? 全局或静态全局变量存储在内存中的什么位置? 最佳答案 有一些混淆,因为 C 中的 static 可能意味着两种不
我尝试从 Marko 组件访问全局变量,但收到 Uncaught ReferenceError: out is not Defined。 class { onClick(event) {
这个 fiddle 在 IE 和 FF 中返回正确的值“5,5”,但在 Chrome 中它返回“5.5” fiddle :http://jsfiddle.net/4tvSH/ Globalize.cu
我对 python 很陌生,我尝试制作一个简单的 GUI 程序。但是,我遇到了一个“问题”,确切地说是一个警告,上面写着:“m”未在全局范围内定义(Python(变量未定义全局))。 我知道如果你想在
将变量初始化为 global var 或调用 globals().update(var) 有什么区别。 谢谢 最佳答案 当你说 global var 您是在告诉 Python var 与在全局上下文中
我正在开发 ASP.NET Web 应用程序,对于未处理的异常,我正在使用Global.asax 文件 我在其中编写了将错误日志写为 的逻辑 Sub Application_Error(ByVal s
这是我的第一篇 StackOverflow 帖子。提前致谢!我在这里找到了很多答案,但在网络上的任何地方都找不到有关我当前问题的任何信息。 =( 我有一个 C# 服务,我已经使用 Visual Stu
问题: 我正在尝试将对我的 MongoDB 数据库的查询结果有效地分配给全局数组。我基本上尝试将对全局数组的引用存储在一个数组中,以便我可以将 for 循环中的查询结果分配给所有这些引用。 这似乎是不
我想看看 Node.js 中 global.process 的构造函数是否存储在任何地方。 例如,在网络中,构造函数很容易获得。例如,window 的构造函数是window.Window。所有构造函数
Tell me about the difference between global.asax and global.asax.cs ? 和 If i click the both file in
全局对象作为顶级词法环境(如果你愿意的话,在作用域链的顶部)。这意味着可以通过直接引用(如变量)访问全局属性: // global code this.foo = 1; // creat
如何修复 Depricated 警告消息 (node:6136) DeprecationWarning: 'GLOBAL' is deprecated, use 'global' 在我的代码中,我使用
在我的本地发布文件夹中,我有 Global.asax 和 Global.asax.cs,其中 Global.asax 未更新(日期为一个月前)和 Global.asax .cs 已更新。 我检查了 G
我有下面的代码,自动生成: $ react-native init RepeatAloud 应用程序.tsx /** * Sample React Native App * https://git
在 Node-red 仪表板上,我想以不同的流量显示相机流。背后的想法是在每个流上显示相机。 为了显示相机流,我使用了 iFrame。一切正常,但我必须为每个单独的 iFrame 提供流的 URL。
我是一名优秀的程序员,十分优秀!