Facebook, invalid URI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Facebook, invalid URI (/showthread.php?tid=11359) |
Facebook, invalid URI - El Forum - 09-05-2008 [eluser]wezzy[/eluser] Hi, i'm trying to develop a new Facebook application using CI. I've choosen the IFRAME interface for my application and when i try to see the page i get "The URI you submitted has disallowed characters." The problem is in the allowed characters that doesn't include "=" and "&". Just open /system/application/config/config.php and change the link 126 from: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; to $config['permitted_uri_chars'] = '&=a-z 0-9~%.:_\-'; and everything seems to work. Hope this helps Facebook, invalid URI - El Forum - 09-05-2008 [eluser]FinalFrag[/eluser] You don't see this so often. "The problem is..." and "everything seems to work now" in the same post. Facebook, invalid URI - El Forum - 09-05-2008 [eluser]wezzy[/eluser] by telling the truth i have to admit that i have some more problem with FB and CI, maybe it was a bit early for the "everything seems to work now" :roll: Anyway that specific error is solved. Facebook, invalid URI - El Forum - 09-06-2008 [eluser]wezzy[/eluser] Another issue with a Facebook IFRAME app is that FB always add some parameters to the url (ex index.php?api_key=...&others;=...) when call the application address. So it's necessary that you set config.php from $config['uri_protocol'] = "AUTO"; to $config['uri_protocol'] = "PATH_INFO"; otherwise CI tries to use the parameters passed to index.php to determine the controller name and of course it fails. Facebook, invalid URI - El Forum - 03-02-2010 [eluser]248creative[/eluser] I'm a recent RoR/Cake guy that's swapped worlds into CI and this is an issue that's been riding me for a day, so I appreciate the post. I've managed to ditch my "URI disallowed" issue, and now I've just got a 404 error that I'm tracking down. Has anyone else had this error when making a CI/Facebook app? I will post my solution when I figure it out. Facebook, invalid URI - El Forum - 03-03-2010 [eluser]n0xie[/eluser] Did you change your config? Code: $config['uri_protocol'] = "PATH_INFO"; Facebook, invalid URI - El Forum - 03-03-2010 [eluser]248creative[/eluser] Yes, I changed my config and my disallowed character fields, but they weren't solving my 404 errors. I unfortunately don't have a specific solution, but a delete and re-upload of my base application folder solved my issue and got me up and running on Facebook. |