• DONATE to NULLED!
    Форуму и его команде можно помочь, мотивировать модераторов разделов.
    Помогите модератору этого раздела killoff лично.

Помощь Проблема авторизации черезь facebook DLE 10.3

SPoX

Знаток
Регистрация
19 Апр 2014
Сообщения
186
Реакции
28
привет всем
и так я установил DLE 10.3 и включил авторизацию через facebook и все работает прекрасно но есть проблема

в окне авторизации facebook говорит

You are using a display type of 'popup' in a large browser window or tab. For a better user experience, show this dialog with our JavaScript SDK without specifying an explicit display type. The SDK will choose the best display type for each environment. Alternatively, set height and width on your window.open() call to properly size this dialog if you have special requirements precluding you from using the SDK. This message is only visible to developers of your application.

вот код из social.class.php
Код:
class AuthViaFacebook {  

    function get_user( $social_config ) {
global $config, $lang;

$params = array(
'client_id'     => $social_config['fcid'],
'client_secret' => $social_config['fcsecret'],
'code' => $_GET['code'],
'redirect_uri'  => $config['http_home_url'] . "index.php?do=auth-social&provider=fc"
);

@parse_str(http_get_contents('https://graph.facebook.com/oauth/access_token' . '?' . http_build_query($params)), $token);

if (isset($token['access_token'])) {

$params = array('access_token' => $token['access_token']);

$user = @json_decode(http_get_contents('https://graph.facebook.com/me' . '?' . http_build_query($params)), true);

if (isset($user['id'])) {

return array ('sid' => sha1 ('facebook'.$user['id']), 'nickname' => $user['name'], 'name' => $user['first_name'].' '.$user['last_name'], 'email' => $user['email'], 'avatar' => '', 'provider' => 'Facebook' );

} else return $lang['social_err_3'];

} else return $lang['social_err_1'];

    }

}

как открить форму авторизации в окне а не в отделном странице
 
Назад
Сверху