Я получаю эту ошибку:
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-адрес моего веб-сайта:
Почему мой 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
но я все еще получаю ошибку.
Ошибка возникла из-за того, что я неправильно передал "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