如何社交化GWT应用?
我正在开发一个 GWT 应用程序,用于显示公司提供的服务,并且我必须允许用户在 Facebook、LinkedIn 和 Twitter 等社交网络中共享服务链接。 你知道如何做这样的事情吗? 任何帮助表示赞赏 预先感谢您的帮助:)
编辑
我已经尝试过 AddThis 但没有显示任何内容 有代码:
HTML socialNetworkLink = new HTML(
"<div class=\"addthis_toolbox addthis_default_style addthis_32x32_style\">"
+ "<a class=\"addthis_button_preferred_1\"></a>"
+ "<a class=\"addthis_button_preferred_2\"></a>"
+ "<a class=\"addthis_button_preferred_3\"></a>"
+ "<a class=\"addthis_button_preferred_4\"></a>"
+ "<a class=\"addthis_button_compact\"></a>"
+ "<a class=\"addthis_counter addthis_bubble_style\"></a>"
+ "</div>"
+ "<script type=\"text/javascript\">var addthis_config = {\"data_track_clickback\":true};</script>"
+ "<script type=\"text/javascript\" src=\"http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4dd380ca4d8393c9\"></script>");
sharePanel.add(socialNetworkLink);
I am developing a GWT application that displays services provided by a company and I must allow users to share links of services in social networks like Facebook, LinkedIn and Twitter.
Have you any idea how to do such a thing?
Any help is appreciated
Thank you in advance for your help :)
Edit
i have tried AddThis but nothing was displayed
there is the code :
HTML socialNetworkLink = new HTML(
"<div class=\"addthis_toolbox addthis_default_style addthis_32x32_style\">"
+ "<a class=\"addthis_button_preferred_1\"></a>"
+ "<a class=\"addthis_button_preferred_2\"></a>"
+ "<a class=\"addthis_button_preferred_3\"></a>"
+ "<a class=\"addthis_button_preferred_4\"></a>"
+ "<a class=\"addthis_button_compact\"></a>"
+ "<a class=\"addthis_counter addthis_bubble_style\"></a>"
+ "</div>"
+ "<script type=\"text/javascript\">var addthis_config = {\"data_track_clickback\":true};</script>"
+ "<script type=\"text/javascript\" src=\"http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4dd380ca4d8393c9\"></script>");
sharePanel.add(socialNetworkLink);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 addthis.com 等内容共享工具。
编辑:或sharethis.com
You can use content sharing tools like addthis.com.
EDITED: or sharethis.com
推特:http://twitter.com/about/resources/tweetbutton
Facebook:http://developers.facebook.com/docs/reference/plugins/like/
LinkedIn:http://developer.linkedin.com/docs/DOC-1075
那么在哪里问题?
Twitter: http://twitter.com/about/resources/tweetbutton
Facebook: http://developers.facebook.com/docs/reference/plugins/like/
LinkedIn: http://developer.linkedin.com/docs/DOC-1075
So where's the problem?