Facebook 如何添加链接?

Facebook 如何添加链接?,facebook,sdk,tabs,Facebook,Sdk,Tabs,我有个问题。 我创建了一个应用程序,它允许你添加一个页面标签。 使用facebook对话框添加页面选项卡。 我不想使用的链接,重定向uri移动到链接,这是在应用程序设置“页面选项卡”中输入的。 如何添加链接? 例子: 如果应用程序内设置为“test.com”,我可以添加选项卡链接“test.com/test/index.html”这是代码: window.fbAsyncInit = function() { FB.init({ appId : '...', status

我有个问题。 我创建了一个应用程序,它允许你添加一个页面标签。 使用facebook对话框添加页面选项卡。 我不想使用的链接,重定向uri移动到链接,这是在应用程序设置“页面选项卡”中输入的。 如何添加链接? 例子: 如果应用程序内设置为“test.com”,我可以添加选项卡链接“test.com/test/index.html”

这是代码:

window.fbAsyncInit = function() {
FB.init({
    appId      : '...',
    status     : true,
    cookie     : true,
    xfbml      : true  
});

$(document).trigger('fbload');  //  <---- THIS RIGHT HERE TRIGGERS A CUSTOM EVENT CALLED 'fbload'
};

function addToPage(url) {
// calling the API ...
var obj = {
    method: 'pagetab',
    redirect_uri: url
};

FB.ui(obj, function(response){
    if (response != null && response.tabs_added != null) {
        //response.tabs_added will have an array with the ids of the tabs selected by the user
    }
});
}

var user_form_link = splitted[0]+'forms/'+uid+'.html';
addToPage(user_form_link);
window.fbAsyninit=function(){
FB.init({
appId:“…”,
状态:正确,
曲奇:是的,
xfbml:对
});

$(document).trigger('fbload');//您能显示代码吗?