How to use oembed tags to implement rich pins

不想你离开。 提交于 2019-12-07 01:58:53

问题


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?

Any help will be appreciated. TIA


回答1:


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

From the link above:

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”.

See also: http://oembed.com/ and Pinterest richpins examples



来源:https://stackoverflow.com/questions/20807937/how-to-use-oembed-tags-to-implement-rich-pins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!