为了进行快速测试,我从https://github.com/facebook/facebook-php-sdk下载了php。
然后,我创建了一个具有以下配置的facebook应用程序
App Domains : example.com.np
Site URL : http://example.com.np我更改了facebook sdk/examples/with_js_sdk.php上的以下行:
$facebook = new Facebook(array(
'appId' => 'ChangedThisToMyAppId',
'secret' => 'ChangedThisToMyAppSecretValue',
));但是,当我在实时服务器上运行这个文件时,我会得到以下错误
Given URL is not permitted by the application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.我相信我已经正确地设置了应用程序域和站点URL,但是为什么会出现这个错误。我也尝试过更改网站网址到http://www.example.com.np仍然没有运气。
有人能点亮我吗?我错过了什么?
发布于 2014-08-07 05:11:59
我不知道为什么我的应用程序不能工作,但这个问题解决了,因为我完全删除了应用程序,并在facebook上创建了一个新的应用程序。但愿这是facebook的问题。我不确定..。
发布于 2014-08-06 12:21:20
如果您有现场网站,上传所有sdk文件到该网站服务器,并填写您自己的域名和网站网址。如果您没有服务器,那么使用
本地主机作为域名
网站网址是我们实现facebook登录的地方。
示例
应用程序域: bikal.com
https://stackoverflow.com/questions/25157679
复制相似问题