저는 Gigya의 자바 스크립트 API를 사용하여 소셜 공유 모음을 설정했지만 사용자 지정 아이콘이 필요합니다. showShareBarUI은 facebook/twitter/etc를 허용하지 않습니다. 아이콘을 변경할 수는 있지만 사용자가 그들이 작성하는 게시물을 미리 볼 수 있습니다. 반대로 publishUserAction은 사용자 정의 아이콘을 로그인과 함께 게시 할 수는 있지만 사용자 콘텐츠의 미리보기를 제공하지는 않습니다.Gigya 사용자 설정 공유 모음
Gigya를 사용하는 동안 공유 표시 줄에 맞춤 아이콘을두고 게시물 콘텐츠를 미리 볼 수있는 방법이 있습니까?
내가 모두 노력하고있어 :
var act = new gigya.socialize.UserAction();
act.setTitle("This is my title"); // Setting the Title
act.setLinkBack("http://www.gigya.com"); // Setting the Link Back
act.setDescription("This is my Description"); // Setting Description
act.addActionLink("Read More", "http://www.gigya.com"); // Adding Action Link
var params =
{
userAction:act,
shareButtons:[
{ // Twitter Tweet button
provider:'twitter-tweet',
tooltip:'Share on Twitter',
defaultText:'Twitter message'
},
{ // Google +1 button
provider:'google-plusone',
tooltip:'Recommend this on Google',
userMessage:'default user message'
}
],
showCounts:'none',
containerID:'shareBar'
}
gigya.socialize.showShareBarUI(params);
OR을 -
은function twitterLogin() {
gigya.services.socialize.login({provider:'twitter',callback:twitter});
}
function twitter(){
var act = new gigya.socialize.UserAction();
act.setTitle("This is my title"); // Setting the Title
act.setLinkBack("http://www.gigya.com"); // Setting the Link Back
act.setDescription("This is my Description"); // Setting Description
act.addActionLink("Read More", "http://www.gigya.com"); // Adding Action Link
var params =
{
userAction:act,
enabledProviders:"twitter"
};
// Publishing the User Action
gigya.socialize.publishUserAction(params);
}
HTML은 - 그렇게이다
이 솔루션 작업을 몇 시간 후 그래서<div id="shareBar" >
<a href="#" onclick="javascript:twitterLogin()">
<img src="images/custom-twitter-icon.png" />
</a>
</div>