包含IP地址的facebook登录URL,但我不包含它。如何删除它?

时间:2019-06-17 20:56:49

标签: codeigniter facebook-graph-api

这是我的Facebook登录网址,其中包含IP地址。我只是在配置文件中添加了网址。不知道该IP从何而来。

https://www.facebook.com/v2.6/dialog/oauth?client_id=611445799265097&state=05400cade5cedaa00a1652f76cce1b8b&response_type=code&sdk=php-sdk-5.0.0&redirect_uri=https%3A%2F%2F67.43.13.148%2Fhttps%3A%2F%2Fdemo.domain.com%2Fhome%2F&scope=email

这是我的配置文件代码

$config['facebook_app_id']              = 'xxxxxxxxxxxx';
$config['facebook_app_secret']          = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$config['facebook_login_type']          = 'web';
$config['facebook_login_redirect_url']  = 'https://demo.domain.com/home/';
$config['facebook_logout_redirect_url'] = 'https://demo.domain.com/login/logout/';
$config['facebook_permissions']         = array('email');
$config['facebook_graph_version']       = 'v2.6';
$config['facebook_auth_on_load']        = TRUE;

这是login.php文件代码

public function index(){
        $userData = array();
        if($this->facebook->is_authenticated()){
            $userProfile = $this->facebook->request('get', '/me?fields=id,first_name,last_name,email,gender,locale,picture');
            echo "<pre>";
            print_r($userProfile);
            die;
        }
        else
        {
            $data['authUrl'] =  $this->facebook->login_url();
        }
        $this->load->view('login',$data);
    }

请帮助

谢谢

0 个答案:

没有答案