Welcome Guest, Not a member yet? Register   Sign In
help with enabling query strings to integrate with facebook
#1

[eluser]socs[/eluser]
Looks like facebook calls the app with a token in the query string such as...

http://localhost/codeigniter/index.php/b...603caf48bb

I have my uri_protocol set to auto and enable query strings to true...
Code:
$config['uri_protocol']    = "AUTO";
$config['enable_query_strings'] = TRUE;
and also allow the & character...
Code:
$config['permitted_uri_chars'] = '&=a-z 0-9~%.:_\-';

The issue is
http://localhost/codeigniter/index.php/browse works fine but when I add a query string I get a page not found
http://localhost/codeigniter/index.php/browse?test=1

04 Page Not Found --> browse&test=1

1. With query strings enabled why is CI not routing the query string to my controller ?

2. If I wanted a rewrite rule to convert the query string what would it look like ?
RewriteEngine On
RewriteCond %{QUERY_STRING} token=what to put here?
RewriteRule ^browse /browse/token/what here? [L,QSA]
#2

[eluser]socs[/eluser]
Looks like just adding a / on the end of the callback url will work.
http://localhost/codeigniter/index.php/b...603caf48bb

Still not getting the _GET variable back but working around it by picking it out of the uri_segment in my remap function.
#3

[eluser]Colin Williams[/eluser]
How do your mod_rewrite rules look?

And you should set your protocol to something other than auto so CI doesn't try to use query string triggers. PATH_INFO or REQUEST_URI should work




Theme © iAndrew 2016 - Forum software by © MyBB