开发者

Facebook Application Security Question

开发者 https://www.devze.com 2023-01-06 04:58 出处:网络
I just created a Facebook Canvas application and I want this application to be added as a Tab to my company fanpage.

I just created a Facebook Canvas application and I want this application to be added as a Tab to my company fanpage.

However I do not want anybody else to be able to do this.

I do however want users to be开发者_JAVA技巧 able to use the application.

How in the world do I configure my application for that?

And how do I even get it in as a tab without making it availiable to everybody?

I hope you guys can help :)


You can't block people from adding your application's tab to their own tabbed profile.

However, you do know the Facebook ID of the user whose tab is being viewed (the tab's owner), so you can behave accordingly.

if ( $_REQUEST['fb_sig_profile_user'] == YOUR_FAN_PAGE_ID )
{
  // display the tab
}

http://wiki.developers.facebook.com/index.php/Tabbed_Profile#Application-Specific_Tabs

0

精彩评论

暂无评论...
验证码 换一张
取 消