如何在twitter上分享,就像在facebook上使用facebook javascript sd共享一些文本一样

2024-06-16 12:05:59 发布

您现在位置:Python中文网/ 问答频道 /正文

当有人在我的网站上点击一个按钮时,我可以使用以下工具向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上发布一些内容有没有类似的东西。在


Tags: 工具comui内容facebookfb网站response