2

我在我的网站上使用来自 gigya 网站的以下示例

<script type="text/javascript">
var act = new gigya.socialize.UserAction();
act.setUserMessage("This is the user message");
act.setTitle("Seasons");
act.setLinkBack("https://platform.gigya.com");
act.setDescription("Seasons is a surreal motion graphics animation based on the changing seasons.");
act.addActionLink("Watch this movie", "http://vimeo.com/24496773");
act.addMediaItem({ type: 'image', src: 'http://b.vimeocdn.com/ts/160/564/160564685_100.jpg', href: 'http://vimeo.com/24496773' });
var showShareBarUI_params=
{ 
    containerID: 'componentDiv',
    shareButtons: 'facebook-like, Twitter-tweet, googleplus-share, share',
    userAction: act
}
</script>
<div id="componentDiv"></div>
<script type="text/javascript">
   gigya.socialize.showShareBarUI(showShareBarUI_params);
</script>

但是,当我单击类似 facebook 的按钮而不是自定义标题(“季节”)和自定义描述(“季节是基于季节变化的超现实运动图形动画。”)时,我从设置链接获取标题和描述

act.setLinkBack("https://platform.gigya.com");

如何在类似 facebook 的按钮上设置我的自定义标题和自定义描述。

谢谢

4

0 回答 0