<?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 for Danny Herran</title>
	<atom:link href="http://www.dannyherran.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dannyherran.com</link>
	<description>A little bit of PHP, MySQL, jQuery, JavaScript, XHTML and CSS</description>
	<lastBuildDate>Thu, 17 May 2012 14:41:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on Detect mobile browser/user agent with PHP (iPad, iPhone, Android, BlackBerry, WP7 and others) by Leo Nguyen</title>
		<link>http://www.dannyherran.com/2011/02/detect-mobile-browseruser-agent-with-php-ipad-iphone-blackberry-and-others/comment-page-2/#comment-2552</link>
		<dc:creator>Leo Nguyen</dc:creator>
		<pubDate>Thu, 17 May 2012 14:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.dannyherran.com/?p=149#comment-2552</guid>
		<description>Can you please translate this script into javascript? Thank you so much!</description>
		<content:encoded><![CDATA[<p>Can you please translate this script into javascript? Thank you so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Facebook PHP SDK and CodeIgniter for basic user authentication by Yaw Asabere</title>
		<link>http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/comment-page-3/#comment-2551</link>
		<dc:creator>Yaw Asabere</dc:creator>
		<pubDate>Thu, 17 May 2012 01:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.dannyherran.com/?p=185#comment-2551</guid>
		<description>Locate and open your php.ini file (if not sure open the url http://localhost/xampp/phpinfo.php, and search for the line Loaded Configuration File). Mine was in C:\xampp\php\php.ini.
Near line 952, uncomment extension=php_curl.dll (remove the semicolon).
Restart the Apache web server.</description>
		<content:encoded><![CDATA[<p>Locate and open your php.ini file (if not sure open the url <a href="http://localhost/xampp/phpinfo.php" rel="nofollow">http://localhost/xampp/phpinfo.php</a>, and search for the line Loaded Configuration File). Mine was in C:\xampp\php\php.ini.<br />
Near line 952, uncomment extension=php_curl.dll (remove the semicolon).<br />
Restart the Apache web server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Facebook PHP SDK and CodeIgniter for basic user authentication by Yaw Asabere</title>
		<link>http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/comment-page-3/#comment-2550</link>
		<dc:creator>Yaw Asabere</dc:creator>
		<pubDate>Thu, 17 May 2012 01:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.dannyherran.com/?p=185#comment-2550</guid>
		<description>problem solved

http://niccolofavari.com/enable-curl-php-extension-with-xampp-on-windows-xp</description>
		<content:encoded><![CDATA[<p>problem solved</p>
<p><a href="http://niccolofavari.com/enable-curl-php-extension-with-xampp-on-windows-xp" rel="nofollow">http://niccolofavari.com/enable-curl-php-extension-with-xampp-on-windows-xp</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Facebook PHP SDK and CodeIgniter for basic user authentication by Yaw Asabere</title>
		<link>http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/comment-page-3/#comment-2549</link>
		<dc:creator>Yaw Asabere</dc:creator>
		<pubDate>Thu, 17 May 2012 00:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.dannyherran.com/?p=185#comment-2549</guid>
		<description>I keep getting this error...

Fatal error: Uncaught exception &#039;Exception&#039; with message &#039;Facebook needs the CURL PHP extension

How can I fix this?</description>
		<content:encoded><![CDATA[<p>I keep getting this error&#8230;</p>
<p>Fatal error: Uncaught exception &#8216;Exception&#8217; with message &#8216;Facebook needs the CURL PHP extension</p>
<p>How can I fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Facebook PHP SDK and CodeIgniter for basic user authentication by Cosmin</title>
		<link>http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/comment-page-3/#comment-2545</link>
		<dc:creator>Cosmin</dc:creator>
		<pubDate>Mon, 07 May 2012 14:53:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.dannyherran.com/?p=185#comment-2545</guid>
		<description>I&#039;m struggling with the same problems for a few hours now, and nothing works.
If I use the method in the tutorial it logs out from FB, but it doesn&#039;t destroy the session on the page, so I it displays logout instead of login.

If I use session_destroy() it works, but it doesn&#039;t destroy the fb session.


sethumadhavan unfortunatly your method doesn&#039;t work for me. it doesn&#039;t logout from facebook, neither from my page.</description>
		<content:encoded><![CDATA[<p>I&#8217;m struggling with the same problems for a few hours now, and nothing works.<br />
If I use the method in the tutorial it logs out from FB, but it doesn&#8217;t destroy the session on the page, so I it displays logout instead of login.</p>
<p>If I use session_destroy() it works, but it doesn&#8217;t destroy the fb session.</p>
<p>sethumadhavan unfortunatly your method doesn&#8217;t work for me. it doesn&#8217;t logout from facebook, neither from my page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Facebook PHP SDK and CodeIgniter for basic user authentication by sethumadhavan</title>
		<link>http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/comment-page-3/#comment-2544</link>
		<dc:creator>sethumadhavan</dc:creator>
		<pubDate>Mon, 07 May 2012 14:03:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dannyherran.com/?p=185#comment-2544</guid>
		<description>this one is working for me....

i added one method in facebook_model like

        public function fbLogout()
	{
		$this-&gt;facebook-&gt;destroySession();
	}

and added logout method in my controller

       function logout()
	{
		$this-&gt;facebook_model-&gt;fbLogout();   
		$this-&gt;session-&gt;sess_destroy();
		$this-&gt;session-&gt;userdata = array();
		redirect(&#039;login&#039;);
		
	}</description>
		<content:encoded><![CDATA[<p>this one is working for me&#8230;.</p>
<p>i added one method in facebook_model like</p>
<p>        public function fbLogout()<br />
	{<br />
		$this-&gt;facebook-&gt;destroySession();<br />
	}</p>
<p>and added logout method in my controller</p>
<p>       function logout()<br />
	{<br />
		$this-&gt;facebook_model-&gt;fbLogout();<br />
		$this-&gt;session-&gt;sess_destroy();<br />
		$this-&gt;session-&gt;userdata = array();<br />
		redirect(&#8216;login&#8217;);</p>
<p>	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Facebook PHP SDK and CodeIgniter for basic user authentication by Steff</title>
		<link>http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/comment-page-3/#comment-2540</link>
		<dc:creator>Steff</dc:creator>
		<pubDate>Wed, 25 Apr 2012 01:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.dannyherran.com/?p=185#comment-2540</guid>
		<description>HI - I am having trouble getting my site to logout. It runs through the fb logout url and then lands back on my initial login page, but the session still exists. So the site still thinks that I am logged in. Is there a way to dump the session and then send the user to the fb-logouturl page? 

I didn&#039;t quite understand Yura&#039;s post (January 25th, 2012 9:48am)

cheers!</description>
		<content:encoded><![CDATA[<p>HI &#8211; I am having trouble getting my site to logout. It runs through the fb logout url and then lands back on my initial login page, but the session still exists. So the site still thinks that I am logged in. Is there a way to dump the session and then send the user to the fb-logouturl page? </p>
<p>I didn&#8217;t quite understand Yura&#8217;s post (January 25th, 2012 9:48am)</p>
<p>cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Facebook PHP SDK and CodeIgniter for basic user authentication by Danny Herran</title>
		<link>http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/comment-page-3/#comment-2539</link>
		<dc:creator>Danny Herran</dc:creator>
		<pubDate>Tue, 24 Apr 2012 15:12:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.dannyherran.com/?p=185#comment-2539</guid>
		<description>Please autoload your session library.</description>
		<content:encoded><![CDATA[<p>Please autoload your session library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Facebook PHP SDK and CodeIgniter for basic user authentication by Pankaj Anupam</title>
		<link>http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/comment-page-3/#comment-2538</link>
		<dc:creator>Pankaj Anupam</dc:creator>
		<pubDate>Tue, 24 Apr 2012 06:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dannyherran.com/?p=185#comment-2538</guid>
		<description>Hey! Thanks so much for posting this!

Message: Undefined property: auth::$session

Filename: core/Model.php

Could you have any idea why it&#039;s not working?</description>
		<content:encoded><![CDATA[<p>Hey! Thanks so much for posting this!</p>
<p>Message: Undefined property: auth::$session</p>
<p>Filename: core/Model.php</p>
<p>Could you have any idea why it&#8217;s not working?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Facebook PHP SDK and CodeIgniter for basic user authentication by James Tan</title>
		<link>http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/comment-page-3/#comment-2536</link>
		<dc:creator>James Tan</dc:creator>
		<pubDate>Sat, 21 Apr 2012 05:47:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.dannyherran.com/?p=185#comment-2536</guid>
		<description>Thanks! I struggled for hrs for that fix and your suggestion works. Was getting getUser() result 0 until I set $_REQUEST to $_GET.

&lt;blockquote cite=&quot;#comment-content-1785&quot;&gt;
&lt;a href=&quot;#comment-1785&quot; rel=&quot;nofollow&quot;&gt;Marques&lt;/a&gt; :
    If you are having problems getting the Access token back after logging in, I had to change base_facebook.php and replace all $_REQUEST with $_GET.  Somehow that fixed it.  Specifically the getCode function, after logging in it always had the code and state in the URL, yet wasn’t getting it with REQUEST.  Hopefully this helps
  &lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Thanks! I struggled for hrs for that fix and your suggestion works. Was getting getUser() result 0 until I set $_REQUEST to $_GET.</p>
<blockquote cite="#comment-content-1785"><p>
<a href="#comment-1785" rel="nofollow">Marques</a> :<br />
    If you are having problems getting the Access token back after logging in, I had to change base_facebook.php and replace all $_REQUEST with $_GET.  Somehow that fixed it.  Specifically the getCode function, after logging in it always had the code and state in the URL, yet wasn’t getting it with REQUEST.  Hopefully this helps
  </p></blockquote>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Content Delivery Network via cdn.androidmodo.netdna-cdn.com

Served from: www.dannyherran.com @ 2012-05-20 10:57:12 -->
