跳到主要內容

發表文章

目前顯示的是 5月, 2015的文章

Add a Facebook App to Page Tab and Get the Selected Page Id then Redirect to the Page

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); }); }); } } );