FB.ui(
{
method: 'pagetab'
},
function (response) {
if (response != null && response.tabs_added != null) {
$.each(response.tabs_added, function (pageid) {
FB.api(pageid, function (response) {
console.log('selected page id is '+pageid+', the page url is ' + response.link);
});
});
}
}
);
{
method: 'pagetab'
},
function (response) {
if (response != null && response.tabs_added != null) {
$.each(response.tabs_added, function (pageid) {
FB.api(pageid, function (response) {
console.log('selected page id is '+pageid+', the page url is ' + response.link);
});
});
}
}
);
留言
張貼留言