在我的php代码中im使用以下代码共享数据:
<a id="fbshare" class="fbshare" href="#" onclick="fbshare()" name="fb_share" share_url="<?=$dataLink"></a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
我希望响应/事件返回到页面。
任何明显的帮助!!!
FB.ui(
{
method: 'feed',
name: 'Facebook Dialogs',
link: 'http://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.',
message: 'Facebook Dialogs are easy!'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);
我想你是在你的fbshare函数中调用FB.ui方法,你可以在那里添加一个函数来获得响应,这里是一个示例代码。