Facebook open graph-分享一首诗而不是一篇文章
Facebook open graph- share a poem instead of an article
我的网站分享诗歌、故事和文章。
这是一首诗的开图示例。
{
"id": "905716739487689",
"application": {
"id": "728278247279506",
"name": "mypen",
"url": "https://he.mypen.net/"
},
"created_time": "2015-04-08T10:48:04+0000",
"description": "My complexity, my life is yours. You have me in the morning as i get out of bed. You have me in the night as i go to sleep. My complexi...",
"image": [
{
"height": 408,
"type": "image/jpeg",
"url": "https://d331rn7syke6mg.cloudfront.net/random/red/32/7/612.jpg",
"width": 612
}
],
"is_scraped": true,
"site_name": "MyPen.net",
"title": "My Complexity",
"type": "article",
"updated_time": "2015-05-27T07:40:27+0000",
"url": "https://en.mypen.net/read.php?ID=123",
"data": {
"section": "Poems"
}
}
问题是,当用户分享一首诗时,Facebook 会告诉它是一篇文章。我在其他地方读到我应该将 og:type 设置为文章,但它似乎不正确:
有什么办法可以设置打开图说"Eran Shmuel shared a poem on mypen"?
或者我是否必须将 og:type 更改为 "website" 以获取诗歌和故事?
您可以创建自己的自定义 OpenGraph 对象和操作。查看指南
There are a few basic components to creating custom Open Graph stories:
- An app namespace for publishing and reading actions and objects
- A custom object
- A custom action
- An Open Graph story configured for publishing
在你的情况下,我认为你需要设置前两点,并使用共享对话框来共享对象。
我的网站分享诗歌、故事和文章。 这是一首诗的开图示例。
{
"id": "905716739487689",
"application": {
"id": "728278247279506",
"name": "mypen",
"url": "https://he.mypen.net/"
},
"created_time": "2015-04-08T10:48:04+0000",
"description": "My complexity, my life is yours. You have me in the morning as i get out of bed. You have me in the night as i go to sleep. My complexi...",
"image": [
{
"height": 408,
"type": "image/jpeg",
"url": "https://d331rn7syke6mg.cloudfront.net/random/red/32/7/612.jpg",
"width": 612
}
],
"is_scraped": true,
"site_name": "MyPen.net",
"title": "My Complexity",
"type": "article",
"updated_time": "2015-05-27T07:40:27+0000",
"url": "https://en.mypen.net/read.php?ID=123",
"data": {
"section": "Poems"
}
}
问题是,当用户分享一首诗时,Facebook 会告诉它是一篇文章。我在其他地方读到我应该将 og:type 设置为文章,但它似乎不正确:
有什么办法可以设置打开图说"Eran Shmuel shared a poem on mypen"?
或者我是否必须将 og:type 更改为 "website" 以获取诗歌和故事?
您可以创建自己的自定义 OpenGraph 对象和操作。查看指南
There are a few basic components to creating custom Open Graph stories:
- An app namespace for publishing and reading actions and objects
- A custom object
- A custom action
- An Open Graph story configured for publishing
在你的情况下,我认为你需要设置前两点,并使用共享对话框来共享对象。