简体   繁体   中英

Setting URL's for cakephp facebook app for integrating localhost website with facebook login

I am using the webtechnich Facebook plugin to integrate the Facebook login with my cakephp website. I executing on the local host. Since I am executing on the local host I am not able to give the correct site URLs , canvas URLs and App domain while creating the Facebook App in the Facebook Developers site.

My local host website login url-

http://localhost/fbtest/users/login

In Facebook developer App settings I have given-

1. Canvas URL - http://localhost/fbtest/
 2. Site URL- http://localhost/fbtest/
 3. App Domain- http://localhost

With this settings I am able to login but following is the error I am getting:

Given URL is not allowed 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.

使用网址http://apps.facebook.com/yourappname/代替应用程序要求的网址

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM