在用户点击我网页上的分享按钮后,是否可以添加其他操作(例如 - alert(“感谢分享”))。
我在这里找到了一些解决方案:http://developers.facebook.com/docs/reference/dialogs/feed/
但如果我使用它,在底部写道:via + NAME OF APPLICATION
我可以在没有底部的文字的情况下这样做吗?
谢谢!
答案 0 :(得分:0)
“via + NAME OF APPLICATION”是无法更改的内容。用户需要知道此帖子来自该应用程序。你不能删除它...
关于回调 - 您可以像这样使用它:
// calling the API ...
var obj = {
method: 'feed',
link: 'https://developers.facebook.com/docs/reference/dialogs/',
picture: 'http://fbrell.com/f8.jpg',
name: 'Facebook Dialogs',
caption: 'Reference Documentation',
description: 'Using Dialogs to interact with users.'
};
FB.ui(obj, function(){
// Here you can put your code to be executed after the user publishes his/her post.
});