<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OSTalks &#187; facebook</title>
	<atom:link href="http://www.ostalks.com/tag/facebook/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ostalks.com</link>
	<description>Open Source, Operating Systems, Offtopic Stuff!</description>
	<lastBuildDate>Fri, 04 Nov 2011 13:16:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to Add a Facebook, Twitter and Google +1 Button to Your WordPress Blog</title>
		<link>http://www.ostalks.com/2011/07/18/how-to-add-a-facebook-twitter-and-google-1-button-to-your-wordpress-blog/</link>
		<comments>http://www.ostalks.com/2011/07/18/how-to-add-a-facebook-twitter-and-google-1-button-to-your-wordpress-blog/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 05:22:12 +0000</pubDate>
		<dc:creator>clintcan</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[+1]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://www.ostalks.com/?p=630</guid>
		<description><![CDATA[Here's a quickie small tip for wordpress blog users.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quickie small tip for wordpress blog users.</p>
<p>If you want to add your own facebook, twitter and Google +1 buttons to your blog post, simply add the following code to your functions.php of your current theme:</p>
<p><code>&lt;?php<br />
add_filter ('the_content', 'insertMeShare');<br />
function insertMeShare($content)<br />
{<br />
if(is_single())<br />
{<br />
global $post;<br />
$link = urlencode($post-&gt;guid);<br />
$content.= '&lt;a href="http://twitter.com/share" data-count="horizontal"&gt;Tweet&lt;/a&gt;&lt;script type="text/javascript" src="http://platform.twitter.com/widgets.js"&gt;&lt;/script&gt;';<br />
$content.= '&lt;iframe src="http://www.facebook.com/plugins/like.php?app_id=181276555267890&amp;amp;href='.$link.'&amp;amp;send=false&amp;amp;layout=button_count&amp;amp;width=110&amp;amp;show_faces=false&amp;amp;action=like&amp;amp;colorscheme=light&amp;amp;font&amp;amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:110px; height:21px; float: relative; " allowTransparency="true"&gt;&lt;/iframe&gt;';<br />
$content.= '&lt;g:plusone&gt;&lt;/g:plusone&gt;&lt;script type="text/javascript" src="https://apis.google.com/js/plusone.js"&gt;&lt;/script&gt;';<br />
}<br />
return $content;<br />
}<br />
?&gt;</code></p>
<p>This code above can be modified further as a wordpress plugin so as to not modify your current theme (especially if your theme is one of those ready made themes which has an update feature). I have made mine to be a wordpress plugin and I am using this now as my current social share buttons &#8211; see the end of my post as an example of these in action. Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ostalks.com/2011/07/18/how-to-add-a-facebook-twitter-and-google-1-button-to-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A Possible Quick Fix to the Inconsistent &#8220;Invalid OAuth 2.0 Access Token&#8221; errors (facebook bug 15933)</title>
		<link>http://www.ostalks.com/2011/04/29/a-possible-quick-fix-to-the-inconsistent-invalid-oauth-2-0-access-token-errors/</link>
		<comments>http://www.ostalks.com/2011/04/29/a-possible-quick-fix-to-the-inconsistent-invalid-oauth-2-0-access-token-errors/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 11:43:11 +0000</pubDate>
		<dc:creator>clintcan</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[fb bug 15933]]></category>
		<category><![CDATA[Invalid OAuth 2.0 Access Token]]></category>
		<category><![CDATA[oh snap!]]></category>

		<guid isPermaLink="false">http://www.ostalks.com/?p=542</guid>
		<description><![CDATA[A few weeks ago, our recently converted FBML application to iFrame application (done last January), suddenly experienced endless redirection loops. 2 days into the problem and frantically searching for a possible solution, I found others experiencing the issue which is currently the most popular opened bug in facebook. Since I&#8217;m using php for the sdk, [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago, our recently converted FBML application to iFrame application (done last January), suddenly experienced endless redirection loops.</p>
<p>2 days into the problem and frantically searching for a possible solution, I found others experiencing the issue which is currently the most popular opened <a href="http://bugs.developers.facebook.net/show_bug.cgi?id=15933">bug in facebook</a>.</p>
<p>Since I&#8217;m using php for the sdk, I followed the advice in comment #119 by a certain Bret Stubbs, using the latest php sdk (although I use a particularly new sdk, a version before the latest) and changing this code:</p>
<p><code>// try loading session from signed_request in $_REQUEST<br />
      $signedRequest = $this->getSignedRequest();<br />
      if ($signedRequest) {<br />
        // sig is good, use the signedRequest<br />
        $session = $this->createSessionFromSignedRequest($signedRequest);<br />
      }</code></p>
<p>to this code here:</p>
<p><code>// try loading session from signed_request in $_REQUEST<br />
      $signedRequest = $this->getSignedRequest();<br />
      if ($signedRequest) {<br />
      if (!isset($signedRequest['user_id'])) {<br />
        return null;<br />
       }<br />
       // sig is good, use the signedRequest<br />
       $session = $this->createSessionFromSignedRequest($signedRequest);<br />
      }<br />
</code></p>
<p>And found out this didn&#8217;t work for me at first (looping redirects still occured).  I found out that enabling the first option below fixed the looping problem:</p>
<p><a href="http://www.ostalks.com/wp-content/uploads/2011/04/OAuth.jpg" rel="ibox"><img src="http://www.ostalks.com/wp-content/uploads/2011/04/OAuth.jpg" alt="" title="OAuth" width="698" height="64" class="alignnone size-full wp-image-543" /></a></p>
<p>This would fix most of the problems with the looping redirects that I encountered.  There was other sections that still had the looping redirect problems and this was solved by removing all instances of the &#8220;session&#8221; parameter checks that facebook would add to the end of the url after authorization.  What I&#8217;m finding odd though is that facebook even though I specifically enabled that deprecated option &#8220;Canvas Session Parameter&#8221;, facebook doesn&#8217;t already return this parameter (I would consider this already obsoleted).</p>
<p>Is this the end of the story for this bug?  Not by a long shot.  There are still errors when calling certain OLD REST APIs through the new SDK and calling the FQL API function (still not resolved yet).  I have already migrated code to avoid these calls as much as possible(I use direct graph api calls in the new codebase as much as possible, and js SDK functions for certain functions that are in the new Graph API SDK but are inferior to the OLD REST APIs in customizability&#8230; and there are no more fql function calls in the codebase).</p>
<p>What do I think of all of these?  Robert Turall, a UK based facebook developer sums it up nicely in his <a href="http://blog.robertturrall.com/2011/04/28/facebook-apis-invalid-oauth-2-0-access-token-error-a-solution/">blog</a>:</p>
<blockquote><p>The problem with Facebook’s approach to their platform and to App developers is that we all have to work to a moving target, an inherently unstable platform. Such a platform is not really suitable for producing the kind of campaign-based Apps that I produce but Facebook market their platform as THE socially-aware marketing platform for campaign-based Apps.</p>
<p>It’s about time they started to run it like one – got some decent QA in place and thoroughly tested their releases before throwing bug-ridden code out into the World.</p></blockquote>
<p>I agree with this completely.  Facebook APIs have been moving in such a manner that it is difficult for a developer track all the changes by himself.  Incomplete documentation especially with recommended new ways of doing facebook development, the defeaning silence of Facebook staff with regards to some bugs (for example I have been keeping track of a certain bug which is already almost a year open, which is important to an app which I&#8217;ve developed, until I&#8217;ve decided to do a workaround which results to a more clunky experience due to deadline constraints), all adds to tensions in the facebook developer community.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ostalks.com/2011/04/29/a-possible-quick-fix-to-the-inconsistent-invalid-oauth-2-0-access-token-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Zero on Android</title>
		<link>http://www.ostalks.com/2011/01/19/facebook-zero-on-android/</link>
		<comments>http://www.ostalks.com/2011/01/19/facebook-zero-on-android/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 07:46:05 +0000</pubDate>
		<dc:creator>clintcan</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[cherry mobile nova]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook zero]]></category>
		<category><![CDATA[sun cellular]]></category>

		<guid isPermaLink="false">http://www.ostalks.com/?p=496</guid>
		<description><![CDATA[Facebook Zero is a service offered by Sun Cellular to its subscribers to access the popular social networking site for free (by now).  Let us see how to configure this currently free service for android devices.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been asked by some people on how to access facebook for free on their android mobile phone in the Philippines.  Well, you can do this if you have a Sun cellular sim card, using a service called facebook zero.</p>
<p>I did this on my Cherry Mobile Nova, but basically all android phones have similar settings screen.</p>
<p>Facebook Zero is a service by Sun Cellular offered to its subscribers to access the popular social networking site for free (by now).  Let us see how to configure this currently free service for android devices.</p>
<p>We need to make sure that the Sun wap APN is configured on the Settings->Wireless &#038; Networks->Mobile network Settings->Access Point Names as shown below:<br />
<a href="http://www.ostalks.com/wp-content/uploads/2011/01/APN-1.png"><img src="http://www.ostalks.com/wp-content/uploads/2011/01/APN-1.png" alt="" title="APN #1" width="320" height="480" class="alignnone size-full wp-image-497" /></a></p>
<p>If its not created yet, let us create a new APN called &#8220;Sun GPRS&#8221; (screenshot below shows the important settings used for this wap service):<br />
<a href="http://www.ostalks.com/wp-content/uploads/2011/01/APN-2.png"><img src="http://www.ostalks.com/wp-content/uploads/2011/01/APN-2.png" alt="" title="APN #2" width="320" height="480" class="alignnone size-full wp-image-498" /></a></p>
<p>Select this APN for use and on the previous screen, enable Data:<br />
<a href="http://www.ostalks.com/wp-content/uploads/2011/01/Mobile-Network-Settings.png"><img src="http://www.ostalks.com/wp-content/uploads/2011/01/Mobile-Network-Settings.png" alt="" title="Mobile Network Settings" width="320" height="480" class="alignnone size-full wp-image-499" /></a></p>
<p>This will let android connect to the wap service.   Let us now open the default android browser and type in &#8220;0.facebook.com&#8221;:<br />
<a href="http://www.ostalks.com/wp-content/uploads/2011/01/browser-start.png"><img src="http://www.ostalks.com/wp-content/uploads/2011/01/browser-start.png" alt="" title="browser start" width="320" height="480" class="alignnone size-full wp-image-500" /></a></p>
<p>If successful, you will now connect through the browser (through wap) to facebook for FREE.  Happy surfing!<br />
<a href="http://www.ostalks.com/wp-content/uploads/2011/01/browser.png"><img src="http://www.ostalks.com/wp-content/uploads/2011/01/browser.png" alt="" title="browser" width="320" height="480" class="alignnone size-full wp-image-501" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ostalks.com/2011/01/19/facebook-zero-on-android/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Facebook: Hiphop for PHP Released As Open Source</title>
		<link>http://www.ostalks.com/2010/02/03/facebook-hiphop-for-php-released-as-open-source/</link>
		<comments>http://www.ostalks.com/2010/02/03/facebook-hiphop-for-php-released-as-open-source/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 07:06:07 +0000</pubDate>
		<dc:creator>clintcan</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[compiler]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[hiphop]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.ostalks.com/?p=230</guid>
		<description><![CDATA[After spending some weeks in rumor land, Facebook has now released a cross-compiling language converter for PHP as open source (php license), titled Hiphop for PHP.]]></description>
			<content:encoded><![CDATA[<p>After spending some weeks in rumor land, Facebook has now released a cross-compiling language converter for PHP as open source (php license), titled Hiphop for PHP.</p>
<p>What the application does is to programatically convert PHP source code into C++ and compile it with g++.</p>
<p>According to senior engineer Haiping Zhao, Hiphop has now been deployed to 90% of the Facebook traffic, six months after deployment.</p>
<p>For more information, please see the video below:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="386" id="utv509403" name="utv_n_42198"><param name="flashvars" value="loc=%2F&amp;autoplay=false&amp;vid=4409735" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.ustream.tv/flash/video/4409735" /><embed flashvars="loc=%2F&amp;autoplay=false&amp;vid=4409735" width="480" height="386" allowfullscreen="true" allowscriptaccess="always" id="utv509403" name="utv_n_42198" src="http://www.ustream.tv/flash/video/4409735" type="application/x-shockwave-flash" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ostalks.com/2010/02/03/facebook-hiphop-for-php-released-as-open-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google, Facebook, Twitter and Privacy</title>
		<link>http://www.ostalks.com/2009/12/11/google-facebook-twitterand-privacy/</link>
		<comments>http://www.ostalks.com/2009/12/11/google-facebook-twitterand-privacy/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 14:52:30 +0000</pubDate>
		<dc:creator>clintcan</dc:creator>
				<category><![CDATA[Off Topic Stuff]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.ostalks.com/?p=190</guid>
		<description><![CDATA[Think about it.  You don't hide things from people you don't know because you did something bad.  It is more likely that you hide things from people you are not likely to trust because they would like to do bad things to you.]]></description>
			<content:encoded><![CDATA[<p>A few days ago, I received a wall post from the Facebook blog, that they have teamed up with Google Real Time Search.  I did a little research on what that truly meant and found this post here on the official <a href="http://googleblog.blogspot.com/2009/12/relevance-meets-real-time-web.html">Google blog</a>.</p>
<p>In a nutshell, this is what is happening.  Google is getting posts and status updates from many networking sites and allowing them to be shown in the search results.  How are they gonna do that?  I got my answer within a few days.</p>
<p>Facebook had a change in their privacy settings.  The time that you log into facebook, you will be notified of the privacy settings page and would suggest you that you change your settings to their recommended one &#8211; one that is seen by practically everyone.</p>
<p>Now, I am no privacy freak.  Far from that.  What I am concerned about is that by allowing your profile to be shown to all, a person will risk being used or taken advantage of by unscrupulous individuals in the net.</p>
<p>I&#8217;ve had my cellphone number been sent text messages by people I do not know about some nice deal which was clearly a scam.  I&#8217;ve had a rise in spam messages when I placed my email in a post or comment in a blog.</p>
<p>Having said that, I strongly agree with <a href="http://www.schneier.com/blog/archives/2009/12/my_reaction_to.html">Bruce Schneier</a>, a well known computer security specialist, that:</p>
<blockquote><p>For if we are observed in all matters, we are constantly under threat of correction, judgment, criticism, even plagiarism of our own uniqueness. We become children, fettered under watchful eyes, constantly fearful that &#8212; either now or in the uncertain future &#8212; patterns we leave behind will be brought back to implicate us, by whatever authority has now become focused upon our once-private and innocent acts. We lose our individuality, because everything we do is observable and recordable.</p></blockquote>
<p>in his blog as a rebuttal to Eric Schmitt, CEO of Google, who said a dangerous statement to Maria Bartiromo during CNBC&#8217;s big Google special, that <a href="http://gawker.com/5419271/google-ceo-secrets-are-for-filthy-people">&#8220;If you have something that you don&#8217;t want anyone to know, maybe you shouldn&#8217;t be doing it in the first place.&#8221;</a></p>
<p>Think about it.  You don&#8217;t hide things from people you don&#8217;t know because you did something bad.  It is more likely that you hide things from people you are not likely to trust because they would like to do bad things to you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ostalks.com/2009/12/11/google-facebook-twitterand-privacy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Starting a Facebook Application</title>
		<link>http://www.ostalks.com/2009/10/27/starting-a-facebook-application/</link>
		<comments>http://www.ostalks.com/2009/10/27/starting-a-facebook-application/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 10:36:15 +0000</pubDate>
		<dc:creator>clintcan</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://ostalks.wordpress.com/?p=72</guid>
		<description><![CDATA[One of the most popular social networking sites today is facebook. As of this time, the social networking site boasts of over 300 million users, which is pretty hard to ignore, considering marketing value.]]></description>
			<content:encoded><![CDATA[<p>One of the most popular social networking sites today is facebook.  As of this time, the social networking site boasts of over 300 million users, which is pretty hard to ignore, considering marketing value.</p>
<p>What makes facebook interesting are its applications; which are mostly user created, and add life to the social networking site.</p>
<p>Here&#8217;s how to submit a facebook application to the net:</p>
<p>1. Join as a facebook developer, and on the http://www.facebook.com/developers/ url, click on the Set up new application button</p>
<p><img class="alignnone size-medium wp-image-73" title="Set up new application" src="http://www.ostalks.com/wp-content/uploads/2011/06/pic1.jpg" alt="Set up new application" width="400" height="25" /></p>
<p>2. On the Create App page, type in the name of your application</p>
<p><img class="alignnone size-medium wp-image-74" title="Create App Page" src="http://www.ostalks.com/wp-content/uploads/2011/06/pic2.jpg" alt="Create App Page" width="600" /></p>
<p>3. Take note of the API Key and Secret; you&#8217;ll need these later.  Fill up the necessary items in the Basic Page.</p>
<p><img class="alignnone size-medium wp-image-75" title="pic3" src="http://www.ostalks.com/wp-content/uploads/2011/06/pic3.jpg" alt="pic3" width="600" /></p>
<p>4. Enter the canvas url (where your application will reside in apps.facebook.com), and the content url where your application is hosted.</p>
<p><img class="alignnone size-medium wp-image-76" title="pic4" src="http://www.ostalks.com/wp-content/uploads/2011/06/pic4.jpg" alt="pic4" width="600" /></p>
<p>5. Press Save, and you&#8217;re off to start a brave new world of creating a Facebook Application!</p>
<p>The simplest start for a facebook application looks like this:</p>
<p><code>require_once 'php/facebook.php';<br />
require_once 'config.php';</code></p>
<p>$facebook = new Facebook($api_key, $secret);<br />
$user_id = $facebook-&gt;require_login();</p>
<p>echo &#8220;Hello, $user_id!&#8221;;</p>
<p>facebook.php is the facebook php client which you can download in the developers site.  You can learn more about the api in the http://wiki.developers.facebook.com/ site.</p>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ostalks.com/2009/10/27/starting-a-facebook-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

