是否有可能创建专用的应用程序只适用于特定的用户? [英] Is it possible to create a private application available only for specific users ?

查看:129
本文介绍了是否有可能创建专用的应用程序只适用于特定的用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我们要为Facebook创建一个应用程序..在我们的系统上有帐户的用户可以安装我们的Facebook应用程序。我们不希望这个应用程序给所有的Facebook用户。这是可能吗?

Basically, we want to create an application for facebook.. where users that have an account on our system are able to install our facebook application. We do not want this application to all facebook users. Is this possible ?

推荐答案

现在安装Facebook应用程序。您无法限制用户在页面选项卡中安装应用程序。但是您可以限制您想要显示的用户/页面的内容。

Right now in for installing Facebook application. you cant restrict users from installing your app in Page Tab. But you can restrict your content, to which user/pageid you want show.

1)以用户为基础限制。

1) Restrict on User basis.

你把一个put if()条件来检查用户是否在你的数据库中。如果是,则只显示其他内容您显示的消息,您没有权限

You put an put if() condition to check whether the user is in your database. if yes then only show the content else you show a message that you don't have permission

2)限制页面。

如果您想限制您的应用程序只能在某些Facebook页面上访问,那么您可以使用签名的请求来获取页面ID,并检查此页面ID是否已注册到您的系统。然后在此条件下显示您的应用内容。

If you want to restrict your app to accessible only in some of Facebook pages , then you can use signed request to get page id and check this page id is registered with your system or not. Then show your app content on this condition.

这篇关于是否有可能创建专用的应用程序只适用于特定的用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆