簡體   English   中英

如何在Google Plus上共享帶有說明的共享圖像?

[英]How to share individual images from the library on google plus with some description?

我正在使用angularJS開發我的應用程序,該應用程序有很多電子賀卡,並且每張賀卡都在我的主頁上列出了縮略圖。 用戶可以從主頁上在各種社交媒體上共享。

目前,我已經使用https://plus.google.com/share?url=進行了共享,但這對我來說還不夠,因為它選擇加載圖像作為圖像參考,並且我不想共享(很明顯),我想分享用戶選擇的圖像以及說明。

Google是否有適用於JavaScript的流API,可以幫助我進行動態內容共享?

還是我不知道該怎么做?

您應該在頁面上添加特殊的元標記

<meta itemprop="name" content=""/>
<meta itemprop="description" content=""/>
<meta itemprop="image" content=""/>

其中圖像是url,應該是您的預覽圖像。

您還可以指定其他網絡的共享選項

推特:

<meta property="og:title" content=""/>
<meta property="og:description" content=""/>
<meta property="og:image" content=""/>
<meta property="og:site_name" content=""/>
<meta property="og:url" content=""/>

Facebook :(圖片最好是256x256 png或jpg)

<meta property="og:title" content=""/>
<meta property="og:description" content=""/>
<meta property="og:image" content=""/>
<meta property="og:site_name" content=""/>
<meta property="og:url" content=""/>

Windows 8菜單鏈接:

<meta name="application-name" content=""/> 
<meta name="msapplication-tooltip" content=""/>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM