mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
...
parent
4a3be554c5
commit
27cbe1c5ad
14
Facebook-Apps.md
Executable file
14
Facebook-Apps.md
Executable file
@ -0,0 +1,14 @@
|
||||
If you're creating a Facebook App using CI and get unexplained errors, there are a couple settings that you may need to tweak.
|
||||
|
||||
Facebook sends your app various parameters in the URL string (e.g. ?fb_sig_in_iframe=1&fb_sig_locale=en_US&...). CI's default configuration chokes on these URLs.
|
||||
|
||||
If your app works fine when you view it directly on your server, but you get an error "The URI you submitted has disallowed characters" when viewing your app in Facebook, the problem is the allowed characters doesn’t include “=” and “&”.
|
||||
|
||||
Open /application/config/config.php and set $config['permitted_uri_chars'] = '&=a-z 0-9~%.:_\-';
|
||||
|
||||
If you get a 404 page not found error when viewing your app in Facebook, CI is using Facebook parameters to determine the controller.
|
||||
|
||||
Open /application/config/config.php and set $config['uri_protocol'] = "PATH_INFO";
|
||||
|
||||
Thanks to this this forum thread for this info:
|
||||
http://codeigniter.com/forums/viewthread/90185/
|
Loading…
x
Reference in New Issue
Block a user