简体   繁体   中英

New Facebook Login with Codeigniter

i have implemented many code in my project.I am not able to identify the issue. Which URL i need to use with this Everytime i get this error.

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.

put mu redirect and return URL string as - "http:// localhost / facebook/"

Same string i put in my FB App Account as "Site URL" : same line as above

I know this is repeated question but ...

Canvas URL should be

http://localhost/facebook/

without spaces or otherwise. In App Domains you should also add

localhost

Facebook login do not work locally, also you need to mention the URL in you facebook APP Setting

Go through following link for more details:
http://code.tutsplus.com/tutorials/how-to-authenticate-users-with-facebook-connect--net-12302

Use IP Address ie 127.0.0.1 instead of localhost

and one more thing you should check .ie you need to define redirect_url along with your config and which is must be same as site_url you define in your facebook app

结帐http://subhra.me/using-facebook-php-sdk-3-codeigniter-2-1/这是一个非常简单的教程。

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