<?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; facebook</title>
	<atom:link href="http://www.sajithmr.me/tag/facebook/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 changes App profile page</title>
		<link>http://www.sajithmr.me/facebook-changes-app-profile-page</link>
		<comments>http://www.sajithmr.me/facebook-changes-app-profile-page#comments</comments>
		<pubDate>Mon, 23 Jan 2012 15:44:09 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=1085</guid>
		<description><![CDATA[From February 2012 onwards, Facebook stops App profile pages. But you can still move all your page likes and users to new page (till Feb). The new Facebook app creation flow is really confusing. For developers, to add a app as a tab to another page, you  need to user the following URL: https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&#38;next=YOUR_URL next [...]]]></description>
			<content:encoded><![CDATA[<p>From February 2012 onwards, Facebook stops App profile pages. But you can still move all your page likes and users to new page (till Feb).</p>
<p>The new Facebook app creation flow is really confusing.</p>
<p>For developers, to add a app as a tab to another page, you  need to user the following URL:</p>
<p><a href="https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&amp;next=YOUR_URL">https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&amp;next=YOUR_URL</a></p>
<p>next parameter should be your canvas page url.</p>
<p>Here you can see an option to add this app to your page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/facebook-changes-app-profile-page/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Facebook Graph API for PHP</title>
		<link>http://www.sajithmr.me/facebook-graph-api-for-php</link>
		<comments>http://www.sajithmr.me/facebook-graph-api-for-php#comments</comments>
		<pubDate>Thu, 15 Jul 2010 05:29:09 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[blank page]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[install curl]]></category>
		<category><![CDATA[install json]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=845</guid>
		<description><![CDATA[Like the old REST API, you don&#8217;t need to add 2-3 files for Facebook PHP SDK. The new graph api comes in a single file which is located at http://github.com/facebook/php-sdk/ Copy the facebook.php file in to your webroot and include this file in your php code. require_once(&#8216;facebook.php&#8217;); To work fully functional, you need CURL and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-848" title="php" src="http://www.sajithmr.me/wp-content/uploads/2010/07/php.png" alt="php" width="346" height="226" /></p>
<p>Like the old REST API, you don&#8217;t need to add 2-3 files for Facebook PHP SDK. The new graph api comes in a single file which is located at <a href="http://github.com/facebook/php-sdk/" target="_blank">http://github.com/facebook/php-sdk/</a></p>
<p>Copy the facebook.php file in to your webroot and include this file in your php code.</p>
<p>require_once(&#8216;facebook.php&#8217;);</p>
<p>To work fully functional, you need CURL and JSON installed in your server. To check this use phpinfo() function.</p>
<p>To make sure, these missing is the main problem, add  <span style="color: #00ccff;"><span style="color: #3366ff;">exit(&#8216;Curl error&#8217;)</span>;</span> just above the line   <span style="color: #3366ff;">throw new Exception(&#8216;Facebook needs the CURL PHP extension.&#8217;); <span style="color: #000000;">in facebook.php file.</span></span></p>
<p><span style="color: #3366ff;"><span style="color: #000000;">Same for JSON.</span></span></p>
<p>The Linux way of installing CURL is :</p>
<p><strong>sudo apt-get install curl libcurl3 libcurl3-dev php5-curl</strong></p>
<p>To install JSON in your linux machine, follow <a href="http://slaptijack.com/system-administration/lets-install-json-for-php-5/" target="_blank">these</a> steps:</p>
<ol>
<li><strong>pecl install json</strong></li>
<li>Add json.ini file in /etc/php.d/</li>
<li>edit json.ini (in VI) and add this line: xtension=json.so</li>
<li>Save the file and restart appache (/etc/init.d/httpd restart)  <em>or apache2 restart depends on your linux OS</em></li>
</ol>
<p>See the example.php file in php-sdk from Github, if you call getSession function, you only get a NULL string if you are not logged in proper way. So I recommend to redirect into login page if there is no session available.</p>
<p>Here is the change:</p>
<p>if (! $facebook-&gt;getSession()) {</p>
<p>header(&#8216;Location: &#8216;.$facebook-&gt;getLoginUrl());</p>
<p>}</p>
<p>Then try the rest of the part as per example.php , it will work</p>
<p>Good Luck</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/facebook-graph-api-for-php/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Facebook Styles from jQuery</title>
		<link>http://www.sajithmr.me/facebook-styles-from-jquery</link>
		<comments>http://www.sajithmr.me/facebook-styles-from-jquery#comments</comments>
		<pubDate>Sat, 08 May 2010 10:22:22 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook design]]></category>
		<category><![CDATA[facebook layout]]></category>
		<category><![CDATA[facebook style edit]]></category>
		<category><![CDATA[facebox]]></category>
		<category><![CDATA[facybox]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=655</guid>
		<description><![CDATA[A wide range of jQuery plugin which help us to create Facebook style designs are follows: I got this huge collection from this website. I am just rewriting that post here. 1) Facybox Website here 2) Facebox http://famspam.com/facebox 3) FCBKComplete Go to webstie 4) Facebook style registration Go to website 5) Gmail/Facebook style jQuery chat [...]]]></description>
			<content:encoded><![CDATA[<p>A wide range of jQuery plugin which help us to create Facebook style designs are follows:</p>
<p>I got this huge collection from <a href="http://www.jquery.wisdomplug.com" target="_blank">this</a> website. I am just rewriting that post here.</p>
<p>1) Facybox</p>
<p><a href="http://bitbonsai.com/facybox/" target="_blank"><img class="alignnone size-full wp-image-658" title="logo-facybox" src="http://www.sajithmr.me/wp-content/uploads/2010/05/logo-facybox.png" alt="logo-facybox" width="264" height="90" /></a></p>
<p>Website <a href="http://bitbonsai.com/facybox/" target="_blank">here</a></p>
<p>2) Facebox</p>
<p><a title="Facebox" href="http://famspam.com/facebox" target="_blank"><img class="alignnone size-full wp-image-656" title="facebox" src="http://www.sajithmr.me/wp-content/uploads/2010/05/facebox.jpg" alt="facebox" width="245" height="121" /></a></p>
<p><a href="http://famspam.com/facebox" target="_blank">http://famspam.com/facebox</a></p>
<p>3) FCBKComplete</p>
<p><img class="alignnone size-medium wp-image-659" title="15ee246.jpg" src="http://www.sajithmr.me/wp-content/uploads/2010/05/15ee246.jpg-300x210.png" alt="15ee246.jpg" width="300" height="210" /></p>
<p>Go to <a href="http://www.emposha.com/javascript/fcbkcomplete.html" target="_blank">webstie</a></p>
<p>4) Facebook style registration</p>
<p><img class="alignnone size-full wp-image-657" title="297" src="http://www.sajithmr.me/wp-content/uploads/2010/05/297.jpg" alt="297" width="434" height="238" /></p>
<p>Go to <a href="http://tutorialzine.com/2009/08/creating-a-facebook-like-registration-form-with-jquery" target="_blank">website</a></p>
<p>5) Gmail/Facebook style jQuery chat</p>
<p><img class="alignnone size-full wp-image-660" title="facechat" src="http://www.sajithmr.me/wp-content/uploads/2010/05/facechat.png" alt="facechat" width="210" height="204" /></p>
<p>Go to <a href="http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/" target="_blank">website</a></p>
<p>6) Facebook style comment using jQuery</p>
<p><img class="alignnone size-medium wp-image-661" title="facecomment" src="http://www.sajithmr.me/wp-content/uploads/2010/05/facecomment-300x101.png" alt="facecomment" width="300" height="101" /></p>
<p>Go to <a href="http://www.9lessons.info/2009/11/facebook-style-application-with-jquery.html" target="_blank">website</a></p>
<p>7) Facebook style auto complete</p>
<p><img class="alignnone size-full wp-image-662" title="search" src="http://www.sajithmr.me/wp-content/uploads/2010/05/search.png" alt="search" width="394" height="153" /></p>
<p>Go to <a href="http://www.web2ajax.fr/examples/facebook_searchengine/" target="_blank">website</a></p>
<p> <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Facebook style picture edit</p>
<p><img class="alignleft size-full wp-image-663" title="tag" src="http://www.sajithmr.me/wp-content/uploads/2010/05/tag.png" alt="tag" width="376" height="201" /></p>
<p>Go to <a href="http://netindonesia.net/blogs/cipto/archive/2009/10/24/jquery-plugin-edit-image-facebook-style.aspx" target="_blank">website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/facebook-styles-from-jquery/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Facebook application development &#8211; Quick note</title>
		<link>http://www.sajithmr.me/facebook-application-development-quick-note</link>
		<comments>http://www.sajithmr.me/facebook-application-development-quick-note#comments</comments>
		<pubDate>Wed, 05 May 2010 23:37:54 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[publish]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[wall]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=675</guid>
		<description><![CDATA[This is a quick note for myself to remember some tricks while we develop a Facebook application. If you are a beginner in Facebook application development, go here first. If  you an expert in Facebook development, go here. The steps in creating a facebook app. 1) Register an application in facebook 2) Add Canvas URL [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-676" title="facebook_f" src="http://www.sajithmr.me/wp-content/uploads/2010/05/facebook_f.jpg" alt="facebook_f" width="187" height="187" /></p>
<p>This is a quick note for myself to remember some tricks while we develop a Facebook application.</p>
<p>If you are a beginner in Facebook application development, go <a href="http://developers.facebook.com/docs/guides/canvas/" target="_blank">here</a> first.</p>
<p>If  you an expert in Facebook development, go <a href="http://gizmodo.com/5530178/top-ten-reasons-you-should-quit-facebook" target="_blank">here</a>. <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The steps in creating a facebook app.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">1) Register an application in facebook</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">2) Add Canvas URL</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">3) Add Canvas Callback url</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">4) Test the canvas is working or not</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">To execute FBML inside your code (for iframe), you must add FBConnect URL</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">You need to set xd_receiver.htm in your webroot folder</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Download facebook php api</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">If you are using iframe, remember to use facebook-canvas url for links and forms , not your local url.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">If you are using canvas mode, you cannot use body tag in your html. You dont need to keep the basic html layout</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">like head, title, body etc</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">An example page in the canvas_callback looks like this:</div>
<p>The steps in creating a facebook app.</p>
<p><span style="color: #800000;"><strong>1) Register an application in facebook</strong></span></p>
<p><span style="color: #800000;"><strong>2) Add Canvas URL</strong></span></p>
<p><span style="color: #800000;"><strong>3) Add Canvas Callback url</strong></span></p>
<p><span style="color: #800000;"><strong>4) Test the canvas is working or not</strong></span></p>
<p>To execute FBML inside your code (for iframe), you must add <a href="http://developers.facebook.com.iproxy.saverpigeeks.com//docs/guides/web" target="_blank">FBConnect</a> URL</p>
<p>You need to set <a href="http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication_Channel" target="_blank">xd_receiver.htm</a> in your webroot folder</p>
<p>Download facebook <a href="http://github.com/facebook/php-sdk" target="_blank">php api</a></p>
<p>If you are using iframe, remember to use facebook-canvas url for links and forms , not your local url.</p>
<p>If you are using canvas mode, you cannot use body tag in your html. You dont need to keep the basic html layout</p>
<p>like head, title, body etc</p>
<p>An example page in the canvas_callback looks like this:</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d">&lt;?php</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #2832cf"><span style="color: #bf2e9d">require_once</span><span style="color: #000000">(</span><span style="font: 11.0px Menlo">&#8216;facebook.php&#8217;</span><span style="color: #000000">);</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #008326">//ini_set (&#8216;display_errors&#8217;, 1);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #2832cf"><span style="font: 12.0px Menlo; color: #000000">$appapikey = </span>&#8217;0d7c64e9a387eXXXXXXXXXXXXXXXXXXX&#8217;<span style="font: 12.0px Menlo; color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #2832cf"><span style="font: 12.0px Menlo; color: #000000">$appsecret = </span>&#8217;9fc9eef6dXXXXXXXXXXXXXXXXXXXXXXX&#8217;<span style="font: 12.0px Menlo; color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">$facebook = <span style="color: #bf2e9d">new</span> Facebook($appapikey, $appsecret);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d">?&gt;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d">
<p style="font: normal normal normal 12px/normal Menlo; margin: 0px;"><span style="color: #000000;"><br />
</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d">
<p style="font: normal normal normal 12px/normal Menlo; margin: 0px;"><span style="color: #000000;">Sometimes , in IE and Safari, infinite redirect loop will happen. It is due to session problem</span></p>
<p style="font: normal normal normal 12px/normal Menlo; margin: 0px;"><span style="color: #000000;">add the below code to solve this!</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;">&lt;?php</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">$prefix = ($_REQUEST[<span style="font: 11.0px Menlo; color: #2832cf;">'fb_sig_user'</span>]) ? <span style="font: 11.0px Menlo; color: #2832cf;">&#8216;fb_sig&#8217;</span> : $appapikey;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;"><span style="color: #bf2e9d;">if</span>( <span style="color: #bf2e9d;">isset</span>($_REQUEST[$prefix<span style="color: #bf2e9d;">.</span><span style="font: 11.0px Menlo; color: #2832cf;">'_session_key'</span>]) ){</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">session_name( $_REQUEST[$prefix<span style="color: #bf2e9d;">.</span><span style="font: 11.0px Menlo; color: #2832cf;">'_session_key'</span>] );</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">session_start();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">$_SESSION[<span style="font: 11.0px Menlo; color: #2832cf;">'fb_user'</span>]        = $_REQUEST[$prefix<span style="color: #bf2e9d;">.</span><span style="font: 11.0px Menlo; color: #2832cf;">'_user'</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">$_SESSION[<span style="font: 11.0px Menlo; color: #2832cf;">'fb_session_key'</span>] = $_REQUEST[$prefix<span style="color: #bf2e9d;">.</span><span style="font: 11.0px Menlo; color: #2832cf;">'_session_key'</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">$_SESSION[<span style="font: 11.0px Menlo; color: #2832cf;">'fb_expires'</span>]     = $_REQUEST[$prefix<span style="color: #bf2e9d;">.</span><span style="font: 11.0px Menlo; color: #2832cf;">'_expires'</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">$_SESSION[<span style="font: 11.0px Menlo; color: #2832cf;">'fb_in_canvas'</span>]   = $_REQUEST[$prefix<span style="color: #bf2e9d;">.</span><span style="font: 11.0px Menlo; color: #2832cf;">'_in_canvas'</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">$_SESSION[<span style="font: 11.0px Menlo; color: #2832cf;">'fb_time'</span>]        = $_REQUEST[$prefix<span style="color: #bf2e9d;">.</span><span style="font: 11.0px Menlo; color: #2832cf;">'_time'</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #2832cf;"><span style="font: 12.0px Menlo; color: #000000;"> $_SESSION[</span>'fb_profile_update_time'<span style="font: 12.0px Menlo; color: #000000;">] = $_REQUEST[$prefix</span><span style="font: 12.0px Menlo; color: #bf2e9d;">.</span>'_profile_update_time'<span style="font: 12.0px Menlo; color: #000000;">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">$_SESSION[<span style="font: 11.0px Menlo; color: #2832cf;">'fb_api_key'</span>]     = $_REQUEST[$prefix<span style="color: #bf2e9d;">.</span><span style="font: 11.0px Menlo; color: #2832cf;">'_api_key'</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">} <span style="color: #bf2e9d;">else</span> {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #008326;"><span style="color: #000000;"> </span>// Just so there *is* a session for times when there is no fb session</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">session_start();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;">?&gt;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;"><span style="color: #000000; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px;">If you use iframe, remember to use this funcion as well</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;"><span style="color: #000000; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px;"><br />
</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;"><span style="color: #000000; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d">&lt;?php</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo"><span style="white-space: pre;"> </span>$facebook-&gt;require_frame();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d">?&gt;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d"><span style="color: #000000; font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px;">Also use the following function if you need authentication</span></p>
<p>$user_id = $facebook-&gt;require_login();</p>
<p>Don&#8217;t forget to add this in html tag (for iframe users)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d62b24"><span style="font: 12.0px Menlo; color: #000000;">&lt;html xmlns=</span>&#8220;http://www.w3.org/1999/xhtml&#8221;<span style="font: 12.0px Menlo; color: #000000;"> xmlns:fb=</span>&#8220;http://www.facebook.com/2008/fbml&#8221;<span style="font: 12.0px Menlo; color: #000000;">&gt;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d62b24">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d62b24"><span style="font: 12.0px Menlo; color: #000000;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">For facebook client side api (Javascript), include this line</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #1440f5"><span style="font: 12.0px Menlo; color: #bf2e9d;">&lt;script </span><span style="color: #977d40;">type</span><span style="font: 12.0px Menlo; color: #bf2e9d;">=</span><span style="color: #d62b24;">&#8220;text/javascript&#8221;</span><span style="font: 12.0px Menlo; color: #bf2e9d;"> </span><span style="color: #977d40;">src</span><span style="font: 12.0px Menlo; color: #bf2e9d;">=</span><span style="color: #d62b24;">&#8220;<a href="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"><span style="color: #1440f5;">http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php</span></a>&#8220;</span><span style="font: 12.0px Menlo; color: #bf2e9d;">&gt;&lt;/script&gt;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">For example, if you need to open a add to bookmark dialog on button click, use:</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">onclick=&#8221;FB.Connect.showBookmarkDialog();&#8221;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">Add this line very bottom of the page, to avoid javascript error in some browsers (IE6 or 7 not sure)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d62b24"><span style="font: 12.0px Menlo; color: #bf2e9d;">&lt;div </span><span style="color: #977d40;">id</span><span style="font: 12.0px Menlo; color: #bf2e9d;">=</span>&#8220;FB_HiddenIFrameContainer&#8221;<span style="font: 12.0px Menlo; color: #bf2e9d;"> </span><span style="color: #977d40;">style</span><span style="font: 12.0px Menlo; color: #bf2e9d;">=</span>&#8220;display:none; position:absolute; left:-100px; top:-100px; width:0px; height: 0px;&#8221;<span style="font: 12.0px Menlo; color: #bf2e9d;">&gt;&lt;/div&gt;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">Sometimes, your application inside iframe shows scroll bar. It is due to dynamically increasing height or width of the content</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">use the below script at the bottom of the page.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d62b24"><span style="font: 12.0px Menlo; color: #bf2e9d;">&lt;script </span><span style="color: #977d40;">type</span><span style="font: 12.0px Menlo; color: #bf2e9d;">=</span>&#8220;text/javascript&#8221;<span style="font: 12.0px Menlo; color: #bf2e9d;">&gt;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">window.onload = <span style="color: #bf2e9d;">function</span>() {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">FB_RequireFeatures([<span style="font: 11.0px Menlo; color: #d62b24;">"XFBML"</span>, <span style="font: 11.0px Menlo; color: #d62b24;">"Connect"</span>], <span style="color: #bf2e9d;">function</span>() {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d62b24"><span style="font: 12.0px Menlo; color: #000000;"> FB.init(</span>&#8220;0d7c64e9a387XXXXXXXXXXXX&#8221;<span style="font: 12.0px Menlo; color: #000000;">, </span><span style="color: #2832cf;">&#8216;xd_receiver.htm&#8217;</span><span style="font: 12.0px Menlo; color: #000000;">);</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">FB.CanvasClient.startTimerToSizeToContent();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">FB.CanvasClient.syncUrl();</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">});</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">};</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d"><span style="color: #000000;"> </span>&lt;/script&gt;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">Look  inside the facebook api php file to know more about the functions. For example to get friends info</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: small;"><span style="line-height: 19px;"> </span></span></p>
<p><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: small;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d">&lt;?php</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo"><span style="white-space: pre;"> </span>$friends = $facebook-&gt;api_client-&gt;friends_get(<span style="font: 11.0px Menlo; color: #2832cf;">&#8221;</span>,$user_id);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px"><span style="white-space: pre;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo"><span style="white-space: pre;"> </span>$friends_info = $facebook-&gt;api_client-&gt;users_getInfo(implode(<span style="font: 11.0px Menlo; color: #2832cf;">&#8216;,&#8217;</span>, $friends), <span style="font: 11.0px Menlo; color: #2832cf;">&#8216;first_name,last_name,pic_square &#8216;</span> );</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d">?&gt;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; color: #000000; font-size: small;"><span style="line-height: 19px;"><span style="font-family: Menlo, 'Times New Roman', 'Bitstream Charter', Times, serif; color: #bf2e9d; font-size: small;"><span style="line-height: normal;"><br />
</span></span></span></span></p>
<p>For ajax call inside your iframe, to avoid redirect loop, pass the full server query url along with your file.</p>
<p>&lt;?=$_SERVER['QUERY_STRING']?&gt;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">eg:</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #2832cf;"><span style="font: 12.0px Menlo; color: #000000;">$(</span>&#8216;#browse_ajax&#8217;<span style="font: 12.0px Menlo; color: #000000;">).load(</span>&#8216;&lt;?=$root_path?&gt;browse_ajax.php?&lt;?=$_SERVER['<span style="font: 12.0px Menlo; color: #000000;">QUERY_STRING</span>']?&gt;&#8217;<span style="font: 12.0px Menlo; color: #000000;">);</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">When you pass Query <span style="color: #bf2e9d;">string</span>, remember to replace your parameters passing via get method<span style="color: #bf2e9d;">.</span> Otherwise</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">you cannot pass yourown custom values</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;">&lt;?php</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;"><span style="white-space: pre;"> </span><span style="color: #bf2e9d;">function</span> get_query_string()</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;"><span style="white-space: pre;"> </span>{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;"><span style="white-space: pre;"> </span>$serverQuery = $_SERVER[<span style="font: 11.0px Menlo; color: #2832cf;">'QUERY_STRING'</span>];</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;"><span style="white-space: pre;"> </span>$serverQuery=  str_replace(<span style="font: 11.0px Menlo; color: #2832cf;">&#8216;page=&#8217;</span>, <span style="font: 11.0px Menlo; color: #2832cf;">&#8216;page_=&#8217;</span>, $serverQuery);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;"><span style="white-space: pre;"> </span>$serverQuery = str_replace(<span style="font: 11.0px Menlo; color: #2832cf;">&#8216;fan=&#8217;</span>, <span style="font: 11.0px Menlo; color: #2832cf;">&#8216;fan_=&#8217;</span>, $serverQuery);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;"><span style="white-space: pre;"> </span>$serverQuery = str_replace(<span style="font: 11.0px Menlo; color: #2832cf;">&#8216;uid=&#8217;</span>, <span style="font: 11.0px Menlo; color: #2832cf;">&#8216;uid_=&#8217;</span>, $serverQuery);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;"><span style="white-space: pre;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;"><span style="white-space: pre;"> </span><span style="color: #bf2e9d;">return</span> $serverQuery;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;"><span style="white-space: pre;"> </span>}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;"><span style="white-space: pre;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;">?&gt;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;">&lt;?php</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;"><span style="color: #008326;">Use the below function for publish to wall option:</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;"><span style="white-space: pre;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;"><span style="color: #bf2e9d;">function</span> publishWall()</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;"><span style="white-space: pre;"> </span>{</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #2832cf;"><span style="font: 12.0px Menlo; color: #000000;"><span style="white-space: pre;"> </span></span><span style="font: 12.0px Menlo; color: #bf2e9d;">var</span><span style="font: 12.0px Menlo; color: #000000;"> message = </span>&#8216;type your message here&#8217;<span style="font: 12.0px Menlo; color: #000000;">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #2832cf;"><span style="font: 12.0px Menlo; color: #000000;"><span style="white-space: pre;"> </span></span><span style="font: 12.0px Menlo; color: #bf2e9d;">var</span><span style="font: 12.0px Menlo; color: #000000;"> attachment = { </span>&#8216;name&#8217;<span style="font: 12.0px Menlo; color: #000000;">: </span>&#8216;your text here&#8217;<span style="font: 12.0px Menlo; color: #000000;">, </span>&#8216;href&#8217;<span style="font: 12.0px Menlo; color: #000000;">: </span>&#8216;http://urlhere.com/&#8217;<span style="font: 12.0px Menlo; color: #000000;">, </span>&#8216;description&#8217;<span style="font: 12.0px Menlo; color: #000000;">: </span>&#8216;Your message here&#8217;<span style="font: 12.0px Menlo; color: #000000;">, </span>&#8216;media&#8217;<span style="font: 12.0px Menlo; color: #000000;">: [{ </span>'type'<span style="font: 12.0px Menlo; color: #000000;">: </span>'image'<span style="font: 12.0px Menlo; color: #000000;">, </span>'src'<span style="font: 12.0px Menlo; color: #000000;">: </span>'urlhere.com', '<span style="font: 12.0px Menlo; color: #000000;">href</span>': '<span style="font: 12.0px Menlo; color: #008326;"><span style="color: #2832cf; font-size: 11px;">urlhere.com</span>'}] };</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #2832cf;"><span style="font: 12.0px Menlo; color: #bf2e9d;">var</span><span style="font: 12.0px Menlo; color: #000000;"> action_links = [{</span>'text'<span style="font: 12.0px Menlo; color: #000000;">:</span>'More like this'<span style="font: 12.0px Menlo; color: #000000;">, </span>'href'<span style="font: 12.0px Menlo; color: #000000;">:</span>'urlhere.com'<span style="font: 12.0px Menlo; color: #000000;">}];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">FB.Connect.streamPublish(message, attachment, action_links);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo;">}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; min-height: 14.0px;"><span style="white-space: pre;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Menlo; color: #bf2e9d;">?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/facebook-application-development-quick-note/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Orkut/Facebook/Flickr/Hi5  is banned in my Office :(  Need a Solution ? Yes Answer is Here !!!</title>
		<link>http://www.sajithmr.me/orkutfacebookflickrhi5-is-banned-in-my-office-need-a-solution-yes-answer-is-here</link>
		<comments>http://www.sajithmr.me/orkutfacebookflickrhi5-is-banned-in-my-office-need-a-solution-yes-answer-is-here#comments</comments>
		<pubDate>Tue, 11 Dec 2007 11:42:03 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[banned]]></category>
		<category><![CDATA[blocked]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[hi5]]></category>
		<category><![CDATA[office]]></category>
		<category><![CDATA[organization]]></category>
		<category><![CDATA[orkut]]></category>
		<category><![CDATA[putty]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/orkutfacebookflickrhi5-is-banned-in-my-office-need-a-solution-yes-answer-is-here/</guid>
		<description><![CDATA[If your organization / office blocked your favorite website, dont worry, we have a solution. If you have your own website / server and ssh access to it, you can browse any website through that. All what you need is putty.exe (in windows). See below the steps for that: You need putty for this purpose. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sajithmr.me/wp-content/uploads/2007/12/orkut_logo.png"><img class="alignnone size-full wp-image-863" title="orkut_logo" src="http://www.sajithmr.me/wp-content/uploads/2007/12/orkut_logo.png" alt="" width="80" height="31" /></a><a href="http://www.sajithmr.me/wp-content/uploads/2007/12/flickr_logo.jpg"><img class="alignnone size-full wp-image-864" title="flickr_logo" src="http://www.sajithmr.me/wp-content/uploads/2007/12/flickr_logo.jpg" alt="" width="100" height="49" /></a><a href="http://www.sajithmr.me/wp-content/uploads/2007/12/503165914_a680a56c77.jpg"><img class="alignnone size-full wp-image-865" title="503165914_a680a56c77" src="http://www.sajithmr.me/wp-content/uploads/2007/12/503165914_a680a56c77.jpg" alt="" width="122" height="50" /></a></p>
<p>If your organization / office blocked your favorite website, dont worry, we have a solution.</p>
<p>If you have your own website / server and ssh access to it, you can browse any website through that. All what you need is putty.exe (in windows).</p>
<p>See below the steps for that:</p>
<p>You need putty for this purpose. Download putty.exe from<a title="putty" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank"> http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a></p>
<p>(Read my previous post on putty <a title="Putty" href="http://www.sajithmr.com/putty/" target="_blank">here</a> )</p>
<p>1) Open putty.exe</p>
<p>2) Enter your server&#8217;s ip address and ssh port. (Default  is 22 )</p>
<p>3) In the Category tree (left), expand Connection , expans SSH and select Tunnels</p>
<p>4) Enter any source port (eg: 8888 or 7777 &#8211; avoid port less than 1000)</p>
<p>5) Select the dynamic radio button</p>
<p>6) Press Ok and login into your server via ssh.</p>
<p>Now your ssh with tunnel is ready.</p>
<p>Goto your browser .</p>
<p>If you are using moziila, take tools (from menu) &gt; Options.</p>
<p>Advanced &gt; Network options &gt; Settings.</p>
<p>Select Manual Proxy settings.</p>
<p>Leave all the places blank . Enter Socks Host as 127.0.0.1 and port as we set earlier in putty&#8217;s tunnel settings (say 8888)</p>
<p>Press OK and browse. You are now browsing via your own server. Thus you bypassed your local system or LAN network. Thus you can access any websites which are blocked from your organization.</p>
<p>If you are using IE, follow the same instructions for proxy settings.</p>
<p>Now enjoy browsing with your favorite sites. cool na !!!</p>
<p>For any queris, mail me : admin@sajithmr.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/orkutfacebookflickrhi5-is-banned-in-my-office-need-a-solution-yes-answer-is-here/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

