开发者

Create facebook tab for only my company page

I have created a co开发者_开发知识库mpany page and want to create a custom tab that can only be installed on my page. I know how to create apps and install the custom tab. How do I set the app up so only I can install it? Thanks!


Each request made to your app's 'page tab url' (the URL used when the app is loaded via a Page tab) will include a signed_request parameter.

The method to decode this is explained at https://developers.facebook.com/docs/authentication/signed_request/ - when your app is loaded on a page tab you'll always get the page parameter (the other parameters may not be present if the current user hasn't authorised your app, which will be the case for most page tab apps)

The page parameter includes the Page ID of the Page it's loaded on. You then use an if statement in your code and decide to show nothing (or some generic content) if the request came via a Page you weren't expecting the App to be installed on.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜