2013-06-01 127 views
1

共享圖像這是我的代碼希望通過谷歌+ API

<button 
    class="g-interactivepost" 
    data-contenturl="http://www.pubandbar-network.co.uk/nightlife_pubs-bars.html" 
    data-clientid="102180630313-ef89c6gjgahgitf0s9qknhrl5mo351ga.apps.googleusercontent.com" 
    data-prefilltext="Engage your users today, create a Google+ page for your business." 
    data-calltoactionurl="http://www.pubandbar-network.co.uk/nightlife_pubs-bars.html" 
    data-cookiepolicy="single_host_origin"> Share 
</button> 

我想這個共享圖像。請幫助我如何通過Google + API分享圖片。 我的第二個問題是: 有沒有什麼辦法可以在PHP上自動分享到google +上?

回答

0

共享中顯示的圖像由Google根據您網頁上的架構數據進行計算。作爲示例,您可以使用snippet configuration tool來配置共享的圖像和說明。當您將content-url設置爲指向具有架構的頁面時,Google將使用該架構微數據來設置圖片等。

除了Google+ App Activities之外,您不能以編程方式與Google+共享。