如何在twitter上分享,比如使用facebookjavascriptsdk在facebook上分享一些文本
how to share in twitter like sharing some text in facebook using facebook javascript sdk
当有人点击我网站上的一个按钮时,我可以使用以下方法将一些内容共享到facebook:
FB.ui(
{
method: 'feed',
name: 'Facebook Dialogs',
link: 'https://developers.facebook.com/docs/reference/dialogs/',
picture: 'http://fbrell.com/f8.jpg',
caption: 'Reference Documentation',
description: 'Dialogs provide a simple, consistent interface for applications to interface with users.'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);
在推特上发布一些内容有什么类似的吗。
前往这里,阅读更多关于twitter API回复的信息https://dev.twitter.com/docs/error-codes-responses
tweet Web Intent可能是FB示例中最方便的模拟。
这个答案给出了一个推特网络意图的示例用法:https://stackoverflow.com/a/19426405/1637295
相关文章:
- 在分享页面URL时,有没有办法在Facebook上分享高质量的页面截图
- 如何在Facebook上分享我自己的网站与网站上的图像
- 如何使用cordova在Whatsapp/Facebook/Instagram和任何其他社交媒体上分享图片
- Facebook分享没有选择完整的网址&自定义url的元名称
- 捕获Facebook分享/发布到FB事件
- 点击Facebook上的分享按钮后重定向
- 在Facebook上分享链接,如何重新初始化FB OBJ
- 将文章从网络应用程序分享到本地Facebook
- Facebook分享深度链接 - Javascript
- 使用我的网络应用程序在Facebook上分享图像
- Facebook分享按钮没有显示
- 通过jQuery的动态Facebook分享按钮
- 如何在分享到Facebook时添加“播放按钮”,例如叠加图像
- Facebook js api:将帖子分享到朋友的留言板
- 在Facebook中分享SVG xml
- 分享facebook项目组合
- 使用javascript sdk分享facebook帖子
- IE浏览器分享Facebook时出现错误,无法关闭窗口
- 让用户分享Facebook图片
- 我如何在使用javascript的firefox中分享facebook中的图像