我會建議使用JavaScript不是作爲它不會導致我們網站的回傳。
看看我的應用程序,看看是否你想要的東西 - >WooTube
function Promote(){
var lnk = 'http://www.wootube.woolei.com?v=<?php echo $_GET["id"] ?>';
FB.login(function(response)
{
if (response.authResponse)
{
//Post To WooTube Group
FB.api('/271691796276524/feed', 'post', {
message: lnk,
link: lnk,
},
function(response) {
if (!response || response.error) {
//alert('You have to join the group first!');
} else {
//alert("Successfully Posted to WooTube Group!");
}
});
//Post to Wootube Page
FB.api('/173724382762792/feed', 'post', {
message: lnk,
link: lnk
},
function(response) {
if (!response || response.error) {
//alert('You have to like http://www.facebook.com/WooTubes first!');
} else {
//alert("Successfully Posted to WooTube Page!");
}
});
}
else
{
alert('Not logged in');
}
}, { scope : 'publish_stream' });
}
啊。所以它應該從API而不是來自Feed對話框。將在我的應用程序中進行測試。 – Femi