简体   繁体   English

使用Facebook PHP SDK重定向uri无法正常工作

[英]redirect uri not working using Facebook PHP SDK

I'm trying to get my login url to go thru my controller, so what I did was I added the redirect uri, but my redirect uri seems to be having problems because it says page not found. 我试图让我的登录网址通过我的控制器,所以我要做的就是添加了重定向uri,但是我的重定向uri似乎有问题,因为它说找不到页面。 (I'm using codeigniter) URL Sample: (我正在使用codeigniter)URL示例:

www.mywebsite.com/somewords/thisfile/function?code=somerandomcode

But when I check if I'm connecting to the correct controller function, it gets there. 但是当我检查是否连接到正确的控制器功能时,它就到达了。 URL Sample: 网址样本:

www.mywebsite.com/somewords/thisfile/function

I don't know which side is causing the problem,is it my configuration for facebook or my codeigniter settings or I just did something wrong. 我不知道是哪一侧引起了问题,是我的Facebook配置还是我的代码点火器设置,还是我做错了什么。

You need to enable query strings for CI in configs 您需要在配置中为CI启用查询字符串

// application/config/config.php

$config['enable_query_strings'] = TRUE;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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