本文介绍了如何使用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

从上面的链接:

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

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/ Pinterest richpins示例

这篇关于如何使用oembed标签实现丰富的图钉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 23:15