how to stop login button app asking for friends list permission

I have implemented the facebook login button but im getting complaints from people saying the app is requesting access to friends list and because of this they dont trust it because they think the app will have the ability to send messages to their friends. I know that this isnt what the app does but the average user doesnt.

I have no use for the friends list. All i use is the email address along with the user id and username. This friends list access is there by default i didnt add the permission so i want to remove it because it took quite a bit of work for me to set all this up and its annoying to hear complaints about a permission request that i dont even require.

This is the code im using to get the info for the user from facebook.

require_once("facebook.php");
    $config = array();
    $config['appId'] = 'xxx';
    $config['secret'] = 'xxx';
    $config['fileUpload'] = false; // optional

    $facebook = new Facebook($config);
    $loginURL = $facebook->getLoginUrl(array('scope' => 'email'));
    try
    {
        $uid = $facebook->getUser();
        $details = $facebook->api($uid);
    }
    catch(Exception $e)
    {
        $uid =0;
    }

The basic permissions text is "APPLICATION would like to access your public profile and friend list." This is the default text to auth any app, even without any permissions added.


Asking for basic info + friends list is the most basic permissions that an app can request. If you do not supply any additional read permissions, then those two permissions are the only ones that will show up, and I do not believe you can remove them.

I believe we do this because when integrating your app with Facebook, the inherent reason is to make your app social and to provide a distribution channel for your app. So the friends list permission is added by default because you should use that permission to encourage the user to share your app with their friends if they wish to do so with the app requests dialog etc.

So you can remove form your app from social

also check this link for more info : Click Here

链接地址: http://www.djcxy.com/p/13154.html

上一篇: 将内存流中的图像添加到Excel文档中

下一篇: 如何停止登录按钮应用程序请求朋友列表权限