Twitist Forums
Simple Facebook app question? - Printable Version

+- Twitist Forums (http://twitist.com)
+-- Forum: Facebook forums (/forum-14.html)
+--- Forum: Facebook apps (/forum-22.html)
+--- Thread: Simple Facebook app question? (/thread-123475.html)



Simple Facebook app question? - Lilmaster - 03-31-2014 06:05 AM

Hello,

I have a simple form inside a php page of a facebook app that posts a query to itself, and I try to access that query using $_GET['query']. However, the submit button just reloads the page without any effect on the query.

Please help, this is my first php web app.


- O.J.Xtream - 03-31-2014 06:13 AM

ok when you start passing parameters within a facebook app to itself & if that happens to be the index page or something. Facebook Just removes your params & add their own Info that needs to be pass to your application. This ofcourse only happens if you are on a Canvas Iframe. you could although use the PHP SDK to make an independent page that connects to facebook through their API Smile

or you should probably put an iframe in the same page you are on and set forrm target="iframe_name"
and do the rest with Javascript.
another way to do it is to use. AJAX with Javascript.