我用這樣的職位,然後檢查響應:
<script>
function fb_share() {
FB.ui({
method: 'feed',
name: 'Name of App',
link: 'http://YOURLINK.com',
picture: 'someurltoimage.jpg',
description: 'Your description of the post for the wall!'
},
function(response) {
if (response && response.post_id) {
console.debug(response.post_id);
// Post was published - now lets send it to our ouwn custom processing page on our server
$.post('/process-post',{uid: <?php echo $currentUser; ?>, wallpost: response.post_id},function(resp) {
// callback after storing the requests
});
} else {
// Post was not published;
}
});
return false;
}
</script>
感謝您的幫助Briam。我會研究一下類似的格式是否可行。我的直覺是,這隻會確定他們發佈的內容,而不是他們發佈或繞過發佈步驟。 哦,好的。我想我已經儘可能地接近了。再次感謝! – 2012-02-06 00:06:00