gpt4 book ai didi

json - 如何使用oembed标签实现丰富的pin

转载 作者:行者123 更新时间:2023-12-04 15:58:18 25 4
gpt4 key购买 nike

我需要实现 pinterest 提供的丰富的 pin ( http://developers.pinterest.com/rich_pins/ )。推荐的方法之一是使用 oembed。不幸的是,我不熟悉 oembed 标签,想知道是否有人可以提供更多见解。 oembed 标签的语法是什么?我应该用标签包围吗?应该叫它的任何特定地方?

任何帮助将不胜感激。
TIA

最佳答案

This给出了示例,但考虑到使用结构化数据的 SEO 优势,将其用于 pinterest 可能更有益。也可以使用元标签

从上面的链接:

An oEmbed formula will look like this:


{
“provider_name”: “PinLeague”,
“url”: “http://pinleague.com/pricing-plans”,
“title”: “Pin League Professional Analytics Suite”,
“description”: “Gain insights and take strategic action on Pinterest with PinLeague’s Professional Analytics Suite.”,
“product_id”: “PL12345″,
“price”: 99.00,
“currency_code”: “USD”,
“brand”: “PinLeague Analytics”
“availability”: “in stock”
“quantity”: “100000”
}

To set up a single rich product pin, use these required fields (color coded to match formula): url: The canonical URL for the product.

title: The product name. No need to use HTML formatting here since any tags will be removed. price: The price of the product without any currency symbols. currency_code: Easily find the correct currency code from xe.com. For example, the US dollar is listed as “USD”.



另见: http://oembed.com/Pinterest richpins examples

关于json - 如何使用oembed标签实现丰富的pin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20807937/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com