<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: FB Series: Locally debug your PHP Facebook App</title>
	<atom:link href="http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/</link>
	<description>Opinions and thoughts on Software and Technology.</description>
	<lastBuildDate>Sun, 31 Jan 2010 17:38:27 +0100</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ben</title>
		<link>http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/comment-page-1/#comment-480</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 13 Jan 2010 00:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/#comment-480</guid>
		<description>the ports where your webserver listens to</description>
		<content:encoded><![CDATA[<p>the ports where your webserver listens to</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/comment-page-1/#comment-451</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 05 Jan 2010 15:47:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/#comment-451</guid>
		<description>What ports do you set up to be forwarded?</description>
		<content:encoded><![CDATA[<p>What ports do you set up to be forwarded?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/comment-page-1/#comment-330</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 02 Dec 2009 00:02:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/#comment-330</guid>
		<description>Hey Ben,

Thanks for your thoughtful response.  I guess creating a true-to-form mock api would likely be a timesink when, as you said, you can just use a practice account to test against the live api. 

Thanks again, i appreciate you taking the time to respond.</description>
		<content:encoded><![CDATA[<p>Hey Ben,</p>
<p>Thanks for your thoughtful response.  I guess creating a true-to-form mock api would likely be a timesink when, as you said, you can just use a practice account to test against the live api. </p>
<p>Thanks again, i appreciate you taking the time to respond.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/comment-page-1/#comment-326</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 30 Nov 2009 21:21:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/#comment-326</guid>
		<description>Hi Tom,

I think it depends on your app. For what I was doing it was just easier to work directly with the live api, and this is what most people do I guess, create Testaccounts and work with the live API. Facebook seems to have a Sandbox in their pipline if you check out the dev blog and the upcoming features. 

If you are interested in doing standalone local testing,  I would also checkout the ruby testing framework Facebook provides, it does full cylce of add user to app, interact with the app and remove everything again.</description>
		<content:encoded><![CDATA[<p>Hi Tom,</p>
<p>I think it depends on your app. For what I was doing it was just easier to work directly with the live api, and this is what most people do I guess, create Testaccounts and work with the live API. Facebook seems to have a Sandbox in their pipline if you check out the dev blog and the upcoming features. </p>
<p>If you are interested in doing standalone local testing,  I would also checkout the ruby testing framework Facebook provides, it does full cylce of add user to app, interact with the app and remove everything again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/comment-page-1/#comment-324</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 30 Nov 2009 01:42:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/#comment-324</guid>
		<description>I had a thought though I&#039;m not sure how easy or realistic it would be to use.  Could you mock out the Facebook API for local testing?  Say you make factory methods for creating FB objects or calling FB API methods.  You could then subclass your objects and override the factory methods to instantiate or call mock objects that behave and respond just like Facebook (granted with hard coded responses/behaviors).  Thoughts?</description>
		<content:encoded><![CDATA[<p>I had a thought though I&#8217;m not sure how easy or realistic it would be to use.  Could you mock out the Facebook API for local testing?  Say you make factory methods for creating FB objects or calling FB API methods.  You could then subclass your objects and override the factory methods to instantiate or call mock objects that behave and respond just like Facebook (granted with hard coded responses/behaviors).  Thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Effettuare il debug in locale delle nostre applicazioni Facebook scritte in PHP &#124; PcExpert</title>
		<link>http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/comment-page-1/#comment-244</link>
		<dc:creator>Effettuare il debug in locale delle nostre applicazioni Facebook scritte in PHP &#124; PcExpert</dc:creator>
		<pubDate>Wed, 11 Nov 2009 15:09:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/#comment-244</guid>
		<description>[...] Fonte      Share this on del.icio.usDigg this!Stumble upon something good? Share it on StumbleUponShare this on TechnoratiPost this to MySpaceShare this on FacebookTweet This!Email this to a friend?Subscribe to the comments for this post?Share this on Wikio    Tagged with: app&#160;&#160;&#160;&#160;debug&#160;&#160;&#160;&#160;developer&#160;&#160;&#160;&#160;facebook&#160;&#160;&#160;&#160;php&#160;&#160;&#160;&#160;programmazione [...]</description>
		<content:encoded><![CDATA[<p>[...] Fonte      Share this on del.icio.usDigg this!Stumble upon something good? Share it on StumbleUponShare this on TechnoratiPost this to MySpaceShare this on FacebookTweet This!Email this to a friend?Subscribe to the comments for this post?Share this on Wikio    Tagged with: app&nbsp;&nbsp;&nbsp;&nbsp;debug&nbsp;&nbsp;&nbsp;&nbsp;developer&nbsp;&nbsp;&nbsp;&nbsp;facebook&nbsp;&nbsp;&nbsp;&nbsp;php&nbsp;&nbsp;&nbsp;&nbsp;programmazione [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G. Perry</title>
		<link>http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/comment-page-1/#comment-24</link>
		<dc:creator>G. Perry</dc:creator>
		<pubDate>Sat, 12 Sep 2009 02:11:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/#comment-24</guid>
		<description>Ben,

I appreciate your quick response to my questions.

As it is, I had to come back tonight to tell you I got Eclipse IDE working!

I had to upgrade my original IDE,  Eclipse 3.3 to Eclipse 3.5, and that allowed me to debug a &#039;remote HTTP session&#039;.

As far as I know, the old version did not have that capability, and it was pointed out to me that the latest version had the option,  Accept Remote Session (JIT).

Once I upgraded the IDE and enabled this remote session option, I was debugging my Facebook app.

As easy as that!

I&#039;ve spent the last 4 months on and off trying to debug my Facebook app (FBML). 

Note, I had no problem debugging my other Facebook app because it used iFrame.

Read a lot of documentation on the Net, but it was your article that got me pointing in the right direction!

Much thanks.</description>
		<content:encoded><![CDATA[<p>Ben,</p>
<p>I appreciate your quick response to my questions.</p>
<p>As it is, I had to come back tonight to tell you I got Eclipse IDE working!</p>
<p>I had to upgrade my original IDE,  Eclipse 3.3 to Eclipse 3.5, and that allowed me to debug a &#8216;remote HTTP session&#8217;.</p>
<p>As far as I know, the old version did not have that capability, and it was pointed out to me that the latest version had the option,  Accept Remote Session (JIT).</p>
<p>Once I upgraded the IDE and enabled this remote session option, I was debugging my Facebook app.</p>
<p>As easy as that!</p>
<p>I&#8217;ve spent the last 4 months on and off trying to debug my Facebook app (FBML). </p>
<p>Note, I had no problem debugging my other Facebook app because it used iFrame.</p>
<p>Read a lot of documentation on the Net, but it was your article that got me pointing in the right direction!</p>
<p>Much thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/comment-page-1/#comment-23</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 11 Sep 2009 11:57:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/#comment-23</guid>
		<description>Hi there,

First from a practical standpoint, when developing a IFrame app I would not go over the facebook frame at all but try to run your app all locally once you got the fb_ params: Get a facebook session, store it in  your php session and don&#039;t go over the facebook frame anymore (your links within the app are www.mydomain.com/foo.php not apps.facebook.com/foo). So you could just circumvent the issue and treat the app as local.

That said I&#039;m not sure I understand your setup, its working for me adding the debugging parameters to the callback canvas url. If debugging is working in your other php apps then it should defenetly working with facebook app too - for iframe and fbml apps.

You see in your access logs if the request from facebook is containing these, and if so the debugs should stop at breakpoints - in fact in Netbeans it stops *always&quot; at the start of the php script - in Aptana you can disable this in Netbeans PHP 6.7 not.

&gt;&gt; What are you referring to when you say, ‘your request url’?
yes this is referring to the canvas callback url. 
&gt;&gt; You don’t initiate a ‘bebug session’ within NetBeans?
Yes I do - In Netbeans  Debug Menu or right-click the project and select debug. This will attach the xdebugger to the php process.

&gt;&gt; debugging key for xdebug stays the same”
In eclipse the debugging key changes everytime you start a xdebugger session in  netbeans not as far as I experienced. I did not try if KEY=default works, if so cool ;)

I will soon post something about iframe dev. and using the different integration points from facebook as I believe there is not so good documentation on those various aspects.</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>First from a practical standpoint, when developing a IFrame app I would not go over the facebook frame at all but try to run your app all locally once you got the fb_ params: Get a facebook session, store it in  your php session and don&#8217;t go over the facebook frame anymore (your links within the app are <a href="http://www.mydomain.com/foo.php" rel="nofollow">http://www.mydomain.com/foo.php</a> not apps.facebook.com/foo). So you could just circumvent the issue and treat the app as local.</p>
<p>That said I&#8217;m not sure I understand your setup, its working for me adding the debugging parameters to the callback canvas url. If debugging is working in your other php apps then it should defenetly working with facebook app too &#8211; for iframe and fbml apps.</p>
<p>You see in your access logs if the request from facebook is containing these, and if so the debugs should stop at breakpoints &#8211; in fact in Netbeans it stops *always&#8221; at the start of the php script &#8211; in Aptana you can disable this in Netbeans PHP 6.7 not.</p>
<p>>> What are you referring to when you say, ‘your request url’?<br />
yes this is referring to the canvas callback url.<br />
>> You don’t initiate a ‘bebug session’ within NetBeans?<br />
Yes I do &#8211; In Netbeans  Debug Menu or right-click the project and select debug. This will attach the xdebugger to the php process.</p>
<p>>> debugging key for xdebug stays the same”<br />
In eclipse the debugging key changes everytime you start a xdebugger session in  netbeans not as far as I experienced. I did not try if KEY=default works, if so cool <img src='http://www.uebersoftware.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I will soon post something about iframe dev. and using the different integration points from facebook as I believe there is not so good documentation on those various aspects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G. Perry</title>
		<link>http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/comment-page-1/#comment-22</link>
		<dc:creator>G. Perry</dc:creator>
		<pubDate>Fri, 11 Sep 2009 01:41:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/#comment-22</guid>
		<description>Ok, I went and got NetBeans, and I&#039;m still missing something here.

&quot;7. In order to debug HTTP Sessions its important that you have the parameter XDEBUG_SESSION_START= (for Netbeans its XDEBUG_SESSION_START=netbeans-xdebug) in your request url. So this gets a bit tricky for facebook apps since facebook is calling the canvas url I think that cannot contain query params (I guess ..) . Anyway no need to try or think either there is a nice firefox plugin that does that for us.&quot;

What are you referring to when you say, &#039;your request url&#039;? 
Are you referring to the Canvas Callback URL that you have to enter in the Facebook App setup page back in your Facebook account?

You can only provide query parameters to the Canvas Callback URL anyway and not in the Canvas URL. I&#039;m doing just that, and it is working perfectly.
Unfortunately, it&#039;s not working when it comes to providing the XDEBUG_SESSION_START as parameters in the hope it will stop the execution of the Facebook app at a specified breakpoint.


&quot;That’s it: Fire up a debugging session in your ide, add a breakpoint in your facebook app and try access your facebook app from facebook. You should end up in your local debugging session.&quot;

When you mean, &#039;fire up a debugging session in your ide&#039;, you&#039;re saying simply start up the ide (NetBeans in this case), place a breakpoint in some source code then leave the program alone??

You don&#039;t initiate a &#039;bebug session&#039; within NetBeans??  (ie. Hit the debug button on the toolbar.)

You instead just open up Firefox, log into your facebook account, and just before you invoke your facebook application, click on the Xdebug helper plugin on the status bar to provide the XDEBUG_SESSION_START=netbeans-xdebug.

The facebook app should start up and &#039;stop&#039; at the breakpoint in the running NetBeans application?

It&#039;s just not happening for me.   Xdebug I know is setup right because I can debug my other php code residing locally on my machine successfully --- in both NetBeans and in Eclipse.  

I&#039;ve updated the Xdebug dll and I&#039;ve been debugging successfully for over a year.

What I&#039;m not getting is how the debugger can stop a Facebook application - a &#039;separate application&#039; running in a separate browser window?

Below is a reference to the Firefox plugin, Xdebug Helper, you speak of. It also was an interesting read in my efforts to get the &#039;debugging of a Facebook application&#039; to freakin&#039; work. It mentions the use of a cookie to trip a breakpoint:
&lt;strong&gt;HTTP Debug Sessions:&lt;/strong&gt;
http://www.xdebug.org/docs/remote#browser_session

Finally, what are you referring to when you say, &quot;debugging key for xdebug stays the same&quot;?
Is that, for example, the KEY=124962935150027 in the URL query parameters?

Should that not be, KEY=default, instead?

Would you suggest anything off hand that I should double-check? 

I&#039;m missing a detail somewhere.

Cheers.</description>
		<content:encoded><![CDATA[<p>Ok, I went and got NetBeans, and I&#8217;m still missing something here.</p>
<p>&#8220;7. In order to debug HTTP Sessions its important that you have the parameter XDEBUG_SESSION_START= (for Netbeans its XDEBUG_SESSION_START=netbeans-xdebug) in your request url. So this gets a bit tricky for facebook apps since facebook is calling the canvas url I think that cannot contain query params (I guess ..) . Anyway no need to try or think either there is a nice firefox plugin that does that for us.&#8221;</p>
<p>What are you referring to when you say, &#8216;your request url&#8217;?<br />
Are you referring to the Canvas Callback URL that you have to enter in the Facebook App setup page back in your Facebook account?</p>
<p>You can only provide query parameters to the Canvas Callback URL anyway and not in the Canvas URL. I&#8217;m doing just that, and it is working perfectly.<br />
Unfortunately, it&#8217;s not working when it comes to providing the XDEBUG_SESSION_START as parameters in the hope it will stop the execution of the Facebook app at a specified breakpoint.</p>
<p>&#8220;That’s it: Fire up a debugging session in your ide, add a breakpoint in your facebook app and try access your facebook app from facebook. You should end up in your local debugging session.&#8221;</p>
<p>When you mean, &#8216;fire up a debugging session in your ide&#8217;, you&#8217;re saying simply start up the ide (NetBeans in this case), place a breakpoint in some source code then leave the program alone??</p>
<p>You don&#8217;t initiate a &#8216;bebug session&#8217; within NetBeans??  (ie. Hit the debug button on the toolbar.)</p>
<p>You instead just open up Firefox, log into your facebook account, and just before you invoke your facebook application, click on the Xdebug helper plugin on the status bar to provide the XDEBUG_SESSION_START=netbeans-xdebug.</p>
<p>The facebook app should start up and &#8217;stop&#8217; at the breakpoint in the running NetBeans application?</p>
<p>It&#8217;s just not happening for me.   Xdebug I know is setup right because I can debug my other php code residing locally on my machine successfully &#8212; in both NetBeans and in Eclipse.  </p>
<p>I&#8217;ve updated the Xdebug dll and I&#8217;ve been debugging successfully for over a year.</p>
<p>What I&#8217;m not getting is how the debugger can stop a Facebook application &#8211; a &#8217;separate application&#8217; running in a separate browser window?</p>
<p>Below is a reference to the Firefox plugin, Xdebug Helper, you speak of. It also was an interesting read in my efforts to get the &#8216;debugging of a Facebook application&#8217; to freakin&#8217; work. It mentions the use of a cookie to trip a breakpoint:<br />
<strong>HTTP Debug Sessions:</strong><br />
<a href="http://www.xdebug.org/docs/remote#browser_session" rel="nofollow">http://www.xdebug.org/docs/remote#browser_session</a></p>
<p>Finally, what are you referring to when you say, &#8220;debugging key for xdebug stays the same&#8221;?<br />
Is that, for example, the KEY=124962935150027 in the URL query parameters?</p>
<p>Should that not be, KEY=default, instead?</p>
<p>Would you suggest anything off hand that I should double-check? </p>
<p>I&#8217;m missing a detail somewhere.</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/comment-page-1/#comment-6</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 17 Aug 2009 15:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.uebersoftware.com/2009/07/fb-series-locally-debug-your-php-facebook-app/#comment-6</guid>
		<description>Hy,

Sorry about the delay, I&#039;m just moving this blog to my new address: uebersoftware.com - will update the facebook links too.

To your question: I get the impression that the debuggers for php are generally not so stable in compare to java debuggers. I really had to do some trial and errors and the eclipse setup / with aptana and zend based did not work for me with respect to debugging. I sucessfully use netbeans. Besides stability another advantage to netbeans is that the debugging key for xdebug stays the same.</description>
		<content:encoded><![CDATA[<p>Hy,</p>
<p>Sorry about the delay, I&#8217;m just moving this blog to my new address: uebersoftware.com &#8211; will update the facebook links too.</p>
<p>To your question: I get the impression that the debuggers for php are generally not so stable in compare to java debuggers. I really had to do some trial and errors and the eclipse setup / with aptana and zend based did not work for me with respect to debugging. I sucessfully use netbeans. Besides stability another advantage to netbeans is that the debugging key for xdebug stays the same.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
