Facebook App - having trouble with query string |
[eluser]Samuurai[/eluser]
Hi, Facebook requires that I set a trailing slash for the Canvas URL, but when I go to access my App, it says: Quote:Application temporarily unavailable I know the problem lies with the "?" because if I remove it, the page loads when I go to the URL directly. render_store() is set up like this: Code: render_store($fbId = NULL) Any ideas?
[eluser]vitoco[/eluser]
You're getting the things wrong, when you call a url like : Code: http://site.com/controller/method/param1/../paramN?var=value var=value gets deleted cause it's a $_GET var, and $fbId will only get a value from the url when the third segment of the url , e.g param1 have a value Code: // http://dev.myurl.com/fb/render_store/1 a way to regenerate $_GET in this kind of app ( i use this method in a facebook app ) is to use a 'post_controller_constructor' hook and do this : Code: parse_str($_SERVER['QUERY_STRING'], $_GET ); Saludos
[eluser]Samuurai[/eluser]
In my case, I had to change the uri_protocol to PATH_INFO in config.php
[eluser]alphabase[/eluser]
Hi, I'm sorry to bring up this topic again, but it seems this problem is also occuring in my apps with the newest CI and FB SDK. I'mm quite new to CI, is there a possibility you give me a little more clarified example on how to fix this? With kind regards, Gerard Nijboer
[eluser]Samuurai[/eluser]
Try this: http://www.quoture.com/facebook/cant-ad-...p-to-a-tab
[eluser]alphabase[/eluser]
Hi! Great response time, thanks! I'm trying to implement Facebook Connect into my own website, without the use of Apps or Canvas. So I guess this doesnt work for my site..? Got any other idea? Perhaps a proven framework for the latest versions? Gerard |
Welcome Guest, Not a member yet? Register Sign In |