NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Debugging Facebook Applications


Joined: 03 Jan 2008
Posts: 4
Reply with quote
Hi guys,

I'm not sure how familar you are with the Facebook API so I'll give a short intro:

They give you a URL like:

http://apps_facebook_com/myapp/

That then maps to a URL you define like:

http://apps_facebook_com/myapp/ => http://mydomain_com/myapp/

Now, the debugging is not straight forward... I can't debug locally because making any request like:

http://mydomain_com/myapp/?myquery=blah

Will redirect to Facebook for login purposes and so on.

Now here's the strange thing: remote debugging http://mydomain_com/myapp/?myquery=blah works fine in PhpED (i.e. I've set it up properly). It's not possible to debug Facebook applications this way because Facebook sets some $_REQUEST variables and so on...

Remote debugging http://apps_facebook_com/myapp/?myquery=blah DOESNT work. It doesn't trigger the debugger at all. I even tried setting the remote URL to
http://apps_facebook_com/myapp/.

Any ideas how to make this work?

Thanks
View user's profileFind all posts by ewpublicSend private message


Joined: 03 Jan 2008
Posts: 4
Reply with quote
OK I got it working by using the DBGSESSID as a GET parameter.

I assume this doesn't work with the toolbar because it sets a cookie rather than use GET?
View user's profileFind all posts by ewpublicSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Looks like you found the reason. Indeed, cookies are valid for the domain they are issued for. If you need to debug a page after redirect, you may want to use "Debug Next Page" in the degugger toolbar. Or try to start debugger when you reach target page you want to debug.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Debugging Facebook Applications
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic