Welcome Guest, Not a member yet? Register   Sign In
Codeigniter + Facebook integration issues
#1

[eluser]Unknown[/eluser]
OK I've been trying to make by first Facebook app with CI and I'm almost about to give up and use plain PHP. But before that I might as well ask for help :-)

The app is currently sitting at http://apps.facebook.com/try-to-pronounce-it
Make sure you are logged out of Facebook before visiting that link. Once you visit it it'll ask you to log in to use the app.

Once you log in you will see a 404 error. That is the problem.

However, if you remove the the query string in the URL (i.e. the question mark and thereafter) the app will start working.

It seems like CI "cares" about the query string. Is there a way I can strip the query string or something?

Btw after hours of messing around I've set the uri protocol in the config.php to REQUEST_URI. AUTO and PATH_INFO both don't work. Also I'm using nginx and not Apache as the web server but I really really doubt that's the problem.

Thanks for any help.

EDIT: This is an FBML app, if that makes any difference :/
#2

[eluser]bigtony[/eluser]
Have you enabled query strings in your config.php file?
#3

[eluser]Unknown[/eluser]
Yep I've enabled query strings
#4

[eluser]Jamie Rumbelow[/eluser]
I've had this problem a number of times, so I've got a workaround which is a very simple drag-and-drop solution that allows you to combine CodeIgniter's pretty segment based URL with query string variables.

Grab it from http://files.jamierumbelow.net/code/myinput1.0.0.zip, and turn off query strings!

Jamie




Theme © iAndrew 2016 - Forum software by © MyBB