如何使用oembed标签实现丰富的图钉 [英] How to use oembed tags to implement rich pins

查看:159
本文介绍了如何使用oembed标签实现丰富的图钉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要实现pinterest( http://developers.pinterest.com/rich_pins/).推荐的方法之一是使用oembed.不幸的是,我不熟悉oembed标签,并且想知道是否有人可以提供更多见解. oembed标签的语法是什么?我应该在标签周围吗?在哪个地方应该叫它?

I need to implement rich pins provided by pinterest (http://developers.pinterest.com/rich_pins/). One of the recommended ways is to use oembed. Unfortunately I am not familiar with oembed tags and was wondering if somebody can provide more insight. What is the syntax for oembed tags? Should I surround with tags? Any particular place where it should be called?

任何帮助将不胜感激. TIA

Any help will be appreciated. TIA

推荐答案

给出了示例,但考虑到使用结构化数据对SEO的好处,将其用于pinterest可能会更有利.也可以使用元标记

This gives examples, but given the SEO benefits of using structured data, it might be more beneficial to use that instead for pinterest. Meta tags can also be used

从上面的链接:

oEmbed公式将如下所示:

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"
}

要设置一个丰富的产品图钉,请使用以下必填字段(使用颜色编码以匹配公式): url:产品的规范URL.

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:产品名称.此处无需使用HTML格式,因为所有标签都将被删除. price:没有任何货币符号的产品价格. currency_code:可以从xe.com轻松找到正确的货币代码.例如,美元被列为"USD".

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/ 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆