<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>Programming Ideas, Logics, Tips and Tricks &#187; documentation</title>
	<atom:link href="http://www.sajithmr.me/tag/documentation/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Sat, 07 Apr 2012 16:30:06 +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>Facebook Graph API &#8211; The missing part</title>
		<link>http://www.sajithmr.me/facebook-graph-api-the-missing-part</link>
		<comments>http://www.sajithmr.me/facebook-graph-api-the-missing-part#comments</comments>
		<pubDate>Thu, 15 Jul 2010 08:15:39 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[album]]></category>
		<category><![CDATA[albums]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[empty string]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[graph api]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[missing]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[rest api]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=840</guid>
		<description><![CDATA[As you all know recent changes in privacy issues made Facebook to change their basic API and added some security concerns. From my best practise, most of the old applications are safe, but you will be in trouble when you create new application. By default you cannot access user&#8217;s photos, profile pictures , albums etc. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-841" title="facebook_logo" src="http://www.sajithmr.me/wp-content/uploads/2010/07/facebook_logo.png" alt="facebook_logo" width="400" height="132" /></p>
<p>As you all know recent changes in privacy issues made Facebook to change their basic API and added some security concerns. From my best practise, most of the old applications are safe, but you will be in trouble when you create new application. By default you cannot access user&#8217;s photos, profile pictures , albums etc. If you continue with old REST API, you may face this problem. You will get an empty array or json string when you call <strong>photos.getAlbum</strong>s function.</p>
<p>If you test these functions from Facebook Console Tool:</p>
<p><a href="http://developers.facebook.com/docs/reference/rest/photos.getAlbums" target="_blank">http://developers.facebook.com/docs/reference/rest/photos.getAlbums</a></p>
<p>It returns real value when you select old applications and returns empty string [] if you select your newly created Facebook app.</p>
<p>To get all those support, you need to use new <a href="http://developers.facebook.com/docs/api" target="_blank">Graph API</a></p>
<p>But if you follow the same steps mentioned in that official document, you will still get this empty string problem. Because, in the basic authentication call, there is no permission type is mentioned. You can only see a basic message with Allow or Deny button.</p>
<p>According to that document, as the part of authentication, you need to call this url with your client id and redirect url and it returns an access_token after a #</p><pre class="crayon-plain-tag"><code>https://graph.facebook.com/oauth/authorize?
    client_id=...&amp;amp;
    redirect_uri=http://www.example.com/oauth_redirect</code></pre><p>You need to use this access_token to request all other functions, eg:</p><pre class="crayon-plain-tag"><code>https://graph.facebook.com/me?access_token=...</code></pre><p>This call will work for most of the requests except photos or albums. So the mistake in these calls are the permission.</p>
<p><strong><span style="color: #ff6600;">Here is the correction:</span></strong></p><pre class="crayon-plain-tag"><code>https://graph.facebook.com/oauth/authorize?
    client_id=...&amp;amp;
    redirect_uri=http://www.example.com/oauth_redirect&amp;amp;perms=publish_stream,user_photos</code></pre><p>Here we pass perms parameter to set different permission and if you use the access_token after this request , you can access user photos and albums. You can see another permission popup with album and photo access.</p>
<p><a href="http://developers.facebook.com/docs/authentication/permissions" target="_blank">Here</a> is the list of such extended permissions in Facebook.</p>
<p>This is the problem when you use new Javascript SDK for graph API, or when you try to integrate these API in PHP or PERL or any other Server side scripting language from the scratch.</p>
<p>If you use new <a href="http://github.com/facebook/php-sdk/" target="_blank">Facebook PHP Graph SDK </a>, you cannot get these problems, but there is still another hidden problem if you continue testing code by the example provided by them.</p>
<p>It is my next POST . See you at there</p>
<p>Thanks</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/facebook-graph-api-the-missing-part/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The Project Team &#8211; Funny Quotes</title>
		<link>http://www.sajithmr.me/the-project-team-funny-quotes</link>
		<comments>http://www.sajithmr.me/the-project-team-funny-quotes#comments</comments>
		<pubDate>Sun, 30 Nov 2008 14:28:21 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[forward]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[marketting]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[quality]]></category>
		<category><![CDATA[tester]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=377</guid>
		<description><![CDATA[Recently some quotes struck my mind from a forwared email. It is basically , i think, 100% true , even though described in as a  funny way. See: Project Manager is a Person who thinks nine Women can deliver a baby in One month Developer is a Person who thinks it will take 18 months [...]]]></description>
			<content:encoded><![CDATA[<p>Recently some quotes struck my mind from a forwared email. It is basically , i think, 100% true , even though described in as a  funny way.</p>
<p>See:</p>
<ol>
<li><strong>Project Manager</strong> is a Person who thinks nine Women can deliver a baby<br />
in One  month</li>
<li><strong>Developer</strong> is a Person who thinks it will take 18 months to deliver a Baby.</li>
<li><strong>Onsite Coordinator </strong>is one who thinks single Woman can deliver nine<br />
babies in  one month</li>
<li><strong>Client</strong> is the one who doesn`t know why he wants a baby</li>
<li><strong>Marketing Manager</strong> is a person who thinks he can deliver a baby even<br />
if no  <span id="lw_1228054037_0">man  and woman</span> are available</li>
<li><strong>Resource Optimization Team</strong> thinks they don`t Need a man or<br />
woman;They`ll  produce a child with zero resources</li>
<li><strong>Documentation Team</strong> thinks they don`t care whether the child is<br />
delivered,  they`ll just document 9 months.</li>
<li><strong>Quality <span id="lw_1228054037_1">Auditor</span> </strong> is the person who is never happy with the PROCESS to<br />
produce a baby.And  lastly&#8230;&#8230;</li>
<li><strong>Tester </strong>is a person who always tells his wife that this is not the Right baby</li>
</ol>
<p><span style="color: #c0c0c0;"><em>Courtesy: Some Forwared Email</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/the-project-team-funny-quotes/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

