Настройка URL сайта сайта для проблемы php приложений Facebook

1

Я получаю эту ошибку:

 Given URL is not allowed by the Application configuration: One or more of
 the given URLs is not allowed by the App settings. It must match the 
Website URL or Canvas URL, or the domain must be a subdomain of one of the 
App domains.

Вот как я установил URL-адрес моего веб-сайта: Изображение 174551

Почему мой url неправильно? Может ли кто-нибудь объяснить мне эту часть? спасибо

ОБНОВЛЕНИЕ Я пробовал следующую комбинацию:

http://attila-naghi.com/facebook/mytest/
http://attila-naghi.com/facebook/mytest
http://attila-naghi.com/facebook/mytest/index.php
http://www.attila-naghi.com/facebook/mytest/
http://www.attila-naghi.com/facebook/mytest
http://www.attila-naghi.com/facebook/mytest/index.php

но я все еще получаю ошибку.

  • 0
    stackoverflow.com/questions/16345777/...
  • 0
    Поверьте мне, я уже проверил первую страницу от google от stackoverflow и пока не нашел решения
Показать ещё 5 комментариев
Теги:
facebook

1 ответ

0

Ошибка возникла из-за того, что я неправильно передал "redirect_uri". Я пропустил часть ".com". Поэтому он должен выглядеть так:

$loginUrl = $facebook->getLoginUrl(array ( 
                    'scope' => 'publish_actions,read_stream,user_groups,user_about_me,user_interests',
                    'redirect_uri' => 'http://attila-naghi.com/facebook/mytest/test.php'
            ));

и 'Given URL is not permitted by the Application configuration: One or more of the given URLs is not allowed by the App settings. To use this URL you must enable Web OAuth Login in your App settings.' 'Given URL is not permitted by the Application configuration: One or more of the given URLs is not allowed by the App settings. To use this URL you must enable Web OAuth Login in your App settings.'

появилось сообщение об ошибке, потому что он должен установить для входа в Web OAuth Login значение yes, и я должен добавить URL-адрес для поля URI перенаправления Valid OAuth

Ещё вопросы

Сообщество Overcoder
Наверх
Меню