如何在 Rails 3 中使用自定义文本实现 facebook 的点赞和 twitter 的分享
我想为 facebook 实现“like”,并通过自定义文本为 twitter 实现“分享”。 (意味着文本已经预定义)。我该怎么办呢。
我尝试过这些:--
gem 'facebook_share'
addthis.com // as their promotion they are adding @addthis which is obvious for using there services but i want to have that.
I want to implement like for facebook and share for twitter with custom text. (Means text is already predefined). How can i do that.
I tried these:--
gem 'facebook_share'
addthis.com // as their promotion they are adding @addthis which is obvious for using there services but i want to have that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
试试这两个。不需要包含任何 sdk、插件等。什么都没有。只需将其复制并粘贴到您的视图文件中即可。
脸书:--
推特:--
Try these two. No need to include any sdk, plugin etc. Nothing. Just copy and paste it on ur view file.
For facebook:--
for twitter:--
对于 twitter:
对于 facebook:您可以使用 feed 方法 API:
For twitter:
For facebook: you can use the feed method API: