I'm working on an mobile web app that list user's friends to post on their walls. I'm using PHP SDK as FB Framework. When facebook redirects back to the original URL, it adds a query string. This is how the return URL in the browser address bar looks like:
When the view is loaded, JQuery mobile tries to call this:
"http://mysite.com/friends/_"
and it gets 404 from Codeigniter because the underscore. As a result of this i have a blank page.
I tried to fix this by changing the REQUEST_URI to PATH_INFO, enabling query strings and an empty string in permitted_uri_chars without any luck.
Also, when I print out the $_SERVER['REQUEST_URI'] I get:
/friends?state=11ccb40641675f22adc52aeff2562a0f&code=AQBsK6AipjCoQ96i00mHz5gJe4MqgxQCbRwZQKqHWngO8X54eyb3o1qZS7Hz0O335SVUVSUHT05M4xtC5FbTclFolxD7Z2rUM5m7zAvIx-TJN-V8aP1L6WtRMsqMWIWclHJZqWqsP9leyAs0H6HxSVvhH50ut8IKv7wowmojNmyW0pQtmUVAsLi0-8WTo-Y_xCg
(WITHOUT the trailing #_ as it looks in the browser address bar)
If I manually delete the #_ at the end in the browser, it loads ok again.
Any ideas?
Thanks.