<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Software Development blog by Aman</title>
	
	<link>http://amanpages.com/wordpress</link>
	<description>Pages written by a software enthusiastic on iPhone app development, ActionScript, PHP or anything that make me interested to play with!</description>
	<lastBuildDate>Mon, 09 Jan 2012 11:09:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/amanpages" /><feedburner:info uri="amanpages" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>iPhone Facebook Connect: How Do I publish feed with FacebookAgent</title>
		<link>http://feedproxy.google.com/~r/amanpages/~3/ngeSGz8t6dM/</link>
		<comments>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 21:45:44 +0000</pubDate>
		<dc:creator>Aman</dc:creator>
				<category><![CDATA[Example Project]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebookagent]]></category>

		<guid isPermaLink="false">http://amanpages.com/?p=201</guid>
		<description><![CDATA[<img src="http://amanpages.com/wordpress//wp-content/uploads/icons/samplecode.png" width="36" height="36" alt="" title="Example Project" /><br/>I planned to write a series of &#8220;How Do I&#8230;&#8221;s with Facebook Connect. Certainly the primary target is YOU but it will also work as a reference to me as well  
The first article will be on publishing a feed.
So lets start&#8230;!
App Requirement Spec

 Option to login/logout to Facebook
Option to publish a feed with:

With [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Fiphone-facebook-connect-how-do-i-publish-feed-with-facebookagent%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Fiphone-facebook-connect-how-do-i-publish-feed-with-facebookagent%2F" height="61" width="51" /></a></div><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/samplecode.png" width="36" height="36" alt="" title="Example Project" /><br/><p>I planned to write a series of &#8220;How Do I&#8230;&#8221;s with Facebook Connect. Certainly the primary target is YOU but it will also work as a reference to me as well <img src='http://amanpages.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The first article will be on publishing a feed.</p>
<p>So lets start&#8230;!</p>
<h2>App Requirement Spec</h2>
<ol>
<li> Option to login/logout to Facebook</li>
<li>Option to publish a feed with:
<ul>
<li>With an image with link</li>
<li>Action link</li>
</ul>
</li>
</ol>
<h2>Get FacebookAgent code</h2>
<p>Checkout the latest code from <a href="http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/">Google Code project</a>. The checkout url is:</p>
<p><span style="font-family: courier new; font-weight: bold; text-style: italic;"><em>svn checkout http://iphone-facebook-twitter-connect-easy-integration-tool.googlecode.com/svn/trunk/ iphone-facebook-twitter-connect-easy-integration-tool-read-only</em></span></p>
<h2>Create a project</h2>
<p>Open up the xcode project and create a view based application; name it &#8220;FacebookFeedPublish&#8221;</p>
<h2>Add FacebookAgent code to project</h2>
<p>Right click on the project. <span style="font-family: courier new; font-weight: bold; text-style: italic;"><em>Select Add-&gt;Existing File</em></span>. Select the <strong>&#8220;xutils&#8221;</strong> folder from the checked out code.</p>
<p><img src="http://amanpages.com/wordpress/wp-content/uploads/2010/04/wordpress-blog-uploadPicture-17.png" border="0" alt="Picture 17.png" width="333" height="238" /></p>
<p>Do not copy.</p>
<h2>Add JSON libraries</h2>
<p>Right click on the project. <span style="font-family: courier new; font-weight: bold; text-style: italic;"><em>Select Add-&gt;Existing File</em></span>. Select the <strong>&#8220;JSON&#8221;</strong> folder from the checked out <strong>xutils-example</strong> project.</p>
<p><img src="http://amanpages.com/wordpress/wp-content/uploads/2010/04/wordpress-blog-uploadPicture-19.png" border="0" alt="Picture 19.png" width="294" height="174" /></p>
<p>Do not copy this either.</p>
<p>Build the project. It should build with no error.</p>
<h2>Initialize FacebookAgent</h2>
<p>Edit <span style="font-family: courier new; font-weight: bold; text-style: italic;"><em>FacebookPublishFeedAppDelegate.m</em></span>.</p>
<p>import FacebookAgent.h at the top.</p>
<pre class="c++">#import FacebookAgent.h</pre>
<p>Add the following line in <span style="font-family: courier new; font-weight: bold; text-style: italic;"><em>applicationDidFinishLaunching</em></span> method:</p>
<pre class="c++">// initiazlie FacebookAgent
[[FacebookAgent sharedAgent]  initializeWithApiKey:@"YOUR_API_KEY"
							ApiSecret:@"YOUR_API_SECRET"
							ApiProxy:nil];</pre>
<p>You have to put your Facebook Application api key and secret.  Just incase you are not sure about this, create a Facebook application from <a href="http://www.facebook.com/developers/createapp.php">http://www.facebook.com/developers/createapp.php</a>. After creating one, you will get api key and secret. Copy and paste those value in the above code.</p>
<h2>Prepare FacebookConnectDelegate handler</h2>
<p>We can use <span style="font-family: courier new; font-weight: bold; text-style: italic;"><em>FacebookAgent</em></span> in multiple view controllers. Very likely we will use it in many places. We have to override and define many delegate methods in each view controllers where we like to use FacebookAgent.</p>
<p>To simplify the process, we well create a <span style="font-family: courier new; font-weight: bold; text-style: italic;"><em>UIViewController</em></span> subclass which will define all the FacebookAgentDelegate methods. Our view controller class will extend this class and override only the required ones.</p>
<p>Add a new file of<span style="font-family: courier new; font-weight: bold; text-style: italic;"><em> UIViewController</em></span> subclass. Name it <span style="font-family: courier new; font-weight: bold; text-style: italic;"><em>MyCustomController</em></span>.</p>
<p><img src="http://amanpages.com/wordpress/wp-content/uploads/2010/04/wordpress-blog-uploadPicture-23.png" border="0" alt="Picture 23.png" width="434" height="318" /></p>
<p>Uncheck  &#8220;With xib for user interface&#8221;.</p>
<p>Implement FacebookAgentDelegate protocol:</p>
<pre class="c++">#import "FacebookAgent.h"

@interface MyCustomController : UIViewController {

}</pre>
<p>Now define the protocol methods:</p>
<pre class="c++">#pragma mark FacebookAgentDelegate
- (void) facebookAgent:(FacebookAgent*)agent statusChanged:(BOOL) success{}
- (void) facebookAgent:(FacebookAgent*)agent didLoadInfo:(NSDictionary*) info{}
- (void) facebookAgent:(FacebookAgent*)agent didLoadFriendList:(NSArray*) data onlyAppUsers:(BOOL)yesOrNo{}
- (void) facebookAgent:(FacebookAgent*)agent didLoadPermissions:(NSArray*) data{}
- (void) facebookAgent:(FacebookAgent*)agent didLoadFQL:(NSArray*) data{}
- (void) facebookAgent:(FacebookAgent*)agent permissionGranted:(FacebookAgentPermission)permission{}
- (void) facebookAgent:(FacebookAgent*)agent photoUploaded:(NSString*) pid{}
- (void) facebookAgent:(FacebookAgent*)agent requestFaild:(NSString*) message{}
- (void) facebookAgent:(FacebookAgent*)agent loginStatus:(BOOL) loggedIn{}
- (void) facebookAgent:(FacebookAgent*)agent dialog:(FBDialog*)dialog didFailWithError:(NSError*)error{}</pre>
<p>Then edit <span style="font-family: courier new; font-weight: bold; text-style: italic;"><em>FacebookPublishFeedViewController.h</em></span> file and make it extend to the newly created class:</p>
<p>Build the project, it should build without any error.</p>
<h2>Enable login/logout option</h2>
<p>Add a button to the view.  Set its image for default state &#8220;Connect_iphone.png&#8221;.</p>
<p>Press &#8216;cmd + =&#8217; to adjust the size.</p>
<p><img src="http://amanpages.com/wordpress/wp-content/uploads/2010/04/wordpress-blog-uploadPicture-21.png" border="0" alt="Picture 21.png" width="396" height="164" /></p>
<p>Set selected state button  &#8220;Logout_iphone.png&#8221;.</p>
<p><img src="http://amanpages.com/wordpress/wp-content/uploads/2010/04/wordpress-blog-uploadPicture-22.png" border="0" alt="Picture 22.png" width="397" height="141" /></p>
<p>These images are downloaded from Facebook site and available in FacebookAgent code base.</p>
<h2>Connecting the button</h2>
<p>Edit <span style="font-family: courier new; font-weight: bold; text-style: italic;"><em>FacebookPublishFeedViewController</em></span> class.</p>
<p>Create an IBOutlet connect it with the button.<br />
Then create an IBAction method and set it as button onTouchUpInside handler.</p>
<pre class="c++">#import
#import "MyCustomController.h"

@interface FacebookPublishFeedViewController : MyCustomController {
	UIButton* btnFbConnect;
}
- (IBAction)OnFBConnect:(id)sender;
@property(nonatomic, retain) IBOutlet UIButton* btnFbConnect;
@end</pre>
<p>In OnFBConnect method we will login to facebook. If already connected we will sign out. So, method definition will be like this:</p>
<pre class="c++">#pragma mark actions
- (IBAction)OnFBConnect:(id)sender{
	if([[FacebookAgent sharedAgent] isLoggedIn]){
		[[FacebookAgent sharedAgent] logout];
	}else {
		[[FacebookAgent sharedAgent] login];
	}
}</pre>
<h2>Update connect button state</h2>
<p>Override the following method like below in FacebookPublishFeedViewController class:</p>
<pre class="c++">#pragma mark FacebookAgentDelegate method
- (void) facebookAgent:(FacebookAgent*)agent loginStatus:(BOOL) loggedIn{
	if(loggedIn){
		btnFbConnect.selected = YES;
	}else {
		btnFbConnect.selected = NO;
	}
}</pre>
<p>This code will update the button image according to login status.</p>
<p>Run the app and connect to Facebook by clicking the button&#8230;. Oops button state is not changed! Add the following line in MyCustomController class viewLoaded method:</p>
<pre class="c++">- (void)viewDidLoad {
    [super viewDidLoad];
	[FacebookAgent sharedAgent].delegate = self;
}</pre>
<p>Now build and run&#8230; after login or logout now button image is updated accordingly.</p>
<h2>Publish Feed</h2>
<p>Add another Round button and add touch up inside handler in FacebookPublishFeedViewController class in this way:</p>
<pre class="c++">- (IBAction)OnFBPublishFeed:(id)sender{
	[[FacebookAgent sharedAgent] publishFeedWithName:@"Hello Facebook!"
			captionText:@"This is a test publish"
			imageurl:@"http://xapplab.com/images/appss/puzzleshot/puzzleshot-icon.png"
			 linkurl:@"http://itunes.apple.com/app/puzzleshot/id343659310?mt=8"
			userMessagePrompt:@"Whats on your mind?"
			actionLabel:@"Play PuzzleShot"
			actionText:@"PuzzleShot!"
			actionLink:@"http://itunes.apple.com/app/puzzleshot/id343659310?mt=8"];
}</pre>
<p>The feed will look this:</p>
<p><img src="http://amanpages.com/wordpress/wp-content/uploads/2010/04/wordpress-blog-uploadPicture-26.png" border="0" alt="Picture 26.png" width="321" height="480" /></p>
<p>Thats it!</p>
<p>Next article will be on showing logged in user information and image. But let me manage some time first <img src='http://amanpages.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Download the project source :<a title="FacebookPublishFeed.zip" href="http://amanpages.com/wordpress/wp-content/uploads/2010/04/FacebookPublishFeed.zip">FacebookPublishFeed.zip</a></p>
<p>Don&#8217;t forget to change api key and secret to run the project correctly!</p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Fiphone-facebook-connect-how-do-i-publish-feed-with-facebookagent%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Fiphone-facebook-connect-how-do-i-publish-feed-with-facebookagent%2F" height="61" width="51" /></a></div><div align="left" style="float:left;padding:5px 5px 0px 0px;"><a name="fb_share" type="button_count" share_url="http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/"></a></div><fb:share-button href="http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/" type="button_count"></fb:share-button><img src="http://feeds.feedburner.com/~r/amanpages/~4/ngeSGz8t6dM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		<feedburner:origLink>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/</feedburner:origLink></item>
		<item>
		<title>Multiple login for TwitterAgent</title>
		<link>http://feedproxy.google.com/~r/amanpages/~3/TaEFYH1Qjd4/</link>
		<comments>http://amanpages.com/wordpress/sample-iphone-example-project/multiple-login-for-twitteragent/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 11:33:12 +0000</pubDate>
		<dc:creator>Aman</dc:creator>
				<category><![CDATA[Example Project]]></category>
		<category><![CDATA[iPhone App Development]]></category>
		<category><![CDATA[twitteragent]]></category>

		<guid isPermaLink="false">http://amanpages.com/?p=187</guid>
		<description><![CDATA[<img src="http://amanpages.com/wordpress//wp-content/uploads/icons/samplecode.png" width="36" height="36" alt="" title="Example Project" /><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/>I received some requests on multiple login option for TwitterAgent and updated the agent there by. Now a logout option is added to login again with a different userid.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Fmultiple-login-for-twitteragent%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Fmultiple-login-for-twitteragent%2F" height="61" width="51" /></a></div><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/samplecode.png" width="36" height="36" alt="" title="Example Project" /><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/><blockquote>
<div id="_mcePaste">XAuth was not used in my classes,  hope to integrate soon.</div>
<div id="_mcePaste">Till then please use this: https://github.com/vodkhang/Twitter-XAuth-and-Sharing</div>
<div id="_mcePaste">Vodkhang used the UI used in TwitterAgent with XAuth.</div>
<p>XAuth was not used in my classes,  hope to integrate soon.<br />
Till then please use this: https://github.com/vodkhang/Twitter-XAuth-and-SharingVodkhang used the UI used in TwitterAgent with XAuth.</p></blockquote>
<p>TwitterAgent is updated and a new feature is added by your request. I received some requests on multiple login option for TwitterAgent and updated the agent there by. Now a logout option is added to login again with a different userid.</p>
<h2>Add twitter agent code to your project</h2>
<p>You can checkout the latest code from the google project or can use the folder available in attached demo project below.<br />
Paste the xutils folder into your project directory.</p>
<p>Now, right click on the project in xcode and add the xutils folder.</p>
<h2>Add SBJSON</h2>
<p>SBJSON is also required for the project. You can have one copy of sbjson source in the attached project.</p>
<h2>Add twit code</h2>
<p>Add a button and in its event handler method add the following lines:</p>
<pre class="c++">[[TwitterAgent defaultAgent] twit];</pre>
<p>After logging in, you will find a new button available on top right corner, that is the logout button!</p>
<div id="attachment_188" class="wp-caption alignnone" style="width: 290px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/04/twitter-agent-logout-option.png"><img class="size-full wp-image-188" title="twitter-agent-logout-option" src="http://amanpages.com/wordpress/wp-content/uploads/2010/04/twitter-agent-logout-option.png" alt="" width="280" height="213" /></a><p class="wp-caption-text">TwitterAgent Logout option</p></div>
<p>On the next version, there will be option to manage batch twit account! Don&#8217;t forget to check back soon!</p>
<blockquote><p><a title="Twitter-Agent-Logout-Example" href="http://amanpages.com/wordpress/wp-content/uploads/2010/04/TwitterAgentLogoutExample.zip">Download Demo project</a></p></blockquote>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Fmultiple-login-for-twitteragent%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Fmultiple-login-for-twitteragent%2F" height="61" width="51" /></a></div><div align="left" style="float:left;padding:5px 5px 0px 0px;"><a name="fb_share" type="button_count" share_url="http://amanpages.com/wordpress/sample-iphone-example-project/multiple-login-for-twitteragent/"></a></div><fb:share-button href="http://amanpages.com/wordpress/sample-iphone-example-project/multiple-login-for-twitteragent/" type="button_count"></fb:share-button><img src="http://feeds.feedburner.com/~r/amanpages/~4/TaEFYH1Qjd4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amanpages.com/wordpress/sample-iphone-example-project/multiple-login-for-twitteragent/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://amanpages.com/wordpress/sample-iphone-example-project/multiple-login-for-twitteragent/</feedburner:origLink></item>
		<item>
		<title>FacebookAgent Update: Easily Run FQL, get User info, get/set permission and friend list!</title>
		<link>http://feedproxy.google.com/~r/amanpages/~3/YBEKe3pp1Do/</link>
		<comments>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-update-easily-run-fql-get-user-info-getset-permission-and-friend-list/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 20:45:26 +0000</pubDate>
		<dc:creator>Aman</dc:creator>
				<category><![CDATA[iPhone App Development]]></category>
		<category><![CDATA[facebookagent]]></category>

		<guid isPermaLink="false">http://amanpages.com/?p=175</guid>
		<description><![CDATA[<img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/>Now support for FQL, friendlist, userinfo is added! You can also give permission and get permission matrix. Additionally, a shared object is introduced so you can use facebook agent easily on multiple view controllers!]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-update-easily-run-fql-get-user-info-getset-permission-and-friend-list%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-update-easily-run-fql-get-user-info-getset-permission-and-friend-list%2F" height="61" width="51" /></a></div><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/><blockquote><p><strong>GET THE LATEST CODE FROM HERE:<a href=" http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/"> http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/</a><br />
PLEASE JOIN THE PROJECT</strong></p>
<p><strong> </strong></p>
<div id="_mcePaste"></div>
<p><strong><em><span style="color: #ff0000;">This project is now obsolete since I found facebook released a great class!!check out here : http://github.com/facebook/facebook-ios-sdk</span></em></strong></p></blockquote>
<p>I am very grateful to all you people who posted feedback, mailed me inspiring notes and now reading the blog <img src='http://amanpages.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Some of you were asking for shared object support so that <a href="http://amanpages.com/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone/">facebook agent</a> can be used from multiple view controllers. I really liked the idea and  shared object is introduced in this release.</p>
<p>Besides, I have been invited to be a co-author on a new book by <a href="http://hasin.wordpress.com/">Hasin Hayder</a>. This book will be on facebook connect and I will contribute the iphone integration chapter. I was really honored and thought to implement some more features in <a href="http://amanpages.com/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone/">facebookagent</a> and now there is option to get user info, friendlist and also you can now run fql <img src='http://amanpages.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here is a short description how to use in new way.</p>
<p>Firstly, On the AppDelegate class, initialize <a href="http://amanpages.com/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone/">facebookagent</a> shared object on applicationdidfinishlaunching method:</p>
<pre class="c++">- (void)applicationDidFinishLaunching:(UIApplication *)application {
	[[FacebookAgent sharedAgent] initializeWithApiKey:@"YOUR API KEY"
	ApiSecret:@"YOUR_API SECRET"
	ApiProxy:nil];
 ...
...
...
}</pre>
<p>Now, set the <a href="http://amanpages.com/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone/">facebookagent</a> delegate to the view controller object in which you want to call a function:</p>
<pre class="c++">[[FacebookAgent sharedAgent] setDelegate:self];</pre>
<p>Then call the function you wish:</p>
<pre class="c++">	[[FacebookAgent sharedAgent] publishFeedWithName:@"Hellow world"
	captionText:@"how are you?"
	imageurl:@"http://amanpages.com/wordpress/wp-content/uploads/2009/12/logo2.png"
	linkurl:@"http://amanpages.com/"
	userMessagePrompt:@"What do i think:"];</pre>
<p>Don&#8217;t forget to override the FacebookAgentDelegate method in the view controller class.</p>
<p>Some new delegate method is added like:</p>
<pre class="c++">- (void) facebookAgent:(FacebookAgent*)agent permissionGranted:(FacebookAgentPermission)permission;
- (void) facebookAgent:(FacebookAgent*)agent didLoadFQL:(NSArray*) data;
- (void) facebookAgent:(FacebookAgent*)agent didLoadPermissions:(NSArray*) data;
- (void) facebookAgent:(FacebookAgent*)agent didLoadInfo:(NSDictionary*) info;
- (void) facebookAgent:(FacebookAgent*)agent didLoadFriendList:(NSArray*) data onlyAppUsers:(BOOL)yesOrNo;</pre>
<p>And some new <a href="http://amanpages.com/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone/">facebookagent</a> function is also added:</p>
<pre class="c++">- (void)getMyFriendList:(BOOL)onlyAppUsers;
- (void)getPermissions;
- (void)grantPermission:(FacebookAgentPermission)type;
- (void)runFQL:(NSString*)fql;
- (BOOL)hasPermission:(FacebookAgentPermission)type;

- (NSString*)getUserName;
- (NSString*)getUserProfileSquareImage;
- (NSString*)getUserProfileImage;</pre>
<p>I will be adding detailed tutorial soon, till then is it. Check out the code from <a href="http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/"><img src="http://www.gstatic.com/codesite/ph/images/defaultlogo.png" alt="iphone-facebook-twitter-connect-easy-integration-tool" />google project</a>.</p>
<p>Personally I created a UIViewController subclass where all the delegate methods are added. Then extended this class by all the viewcontrollers needing <a href="http://amanpages.com/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone">facebook agent</a> and overridden the required ones only.</p>
<p>I will really appreciate if you join this project and give any sort of update, bug report or even feedback.</p>
<p>Btw, do I need to mention again:<br />
PLEASE REMEMBER THESE CODE IS NOT FULLY TESTED ON DEVICES AND MAY CRASH, USE IT ON YOUR OWN RISK!</p>
<p>Cheers.</p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-update-easily-run-fql-get-user-info-getset-permission-and-friend-list%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-update-easily-run-fql-get-user-info-getset-permission-and-friend-list%2F" height="61" width="51" /></a></div><div align="left" style="float:left;padding:5px 5px 0px 0px;"><a name="fb_share" type="button_count" share_url="http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-update-easily-run-fql-get-user-info-getset-permission-and-friend-list/"></a></div><fb:share-button href="http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-update-easily-run-fql-get-user-info-getset-permission-and-friend-list/" type="button_count"></fb:share-button><img src="http://feeds.feedburner.com/~r/amanpages/~4/YBEKe3pp1Do" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-update-easily-run-fql-get-user-info-getset-permission-and-friend-list/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-update-easily-run-fql-get-user-info-getset-permission-and-friend-list/</feedburner:origLink></item>
		<item>
		<title>tech for teach</title>
		<link>http://feedproxy.google.com/~r/amanpages/~3/i2uanVJ2Uqg/</link>
		<comments>http://amanpages.com/wordpress/technology/tech-for-teach/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 18:53:21 +0000</pubDate>
		<dc:creator>Aman</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://amanpages.com/?p=172</guid>
		<description><![CDATA[<img src="http://amanpages.com/wordpress//wp-content/uploads/icons/gadgets.png" width="36" height="36" alt="" title="Technology" /><br/>
When I was at school I hardly used any computer, let alone latest gadgets&#8230; if there were any! But now days have changed. So changed the technology, people and of course young people. Perhaps, the young ones change most rapidly, they are becoming more intelligent, smart and tech loving. For example, if you are not [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Ftechnology%2Ftech-for-teach%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Ftechnology%2Ftech-for-teach%2F" height="61" width="51" /></a></div><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/gadgets.png" width="36" height="36" alt="" title="Technology" /><br/><p><img src="http://i.i.com.com/cnwk.1d/i/bto/20100203/hero_20100127_270x326.png" alt="iPad now have text books!" /></p>
<p>When I was at school I hardly used any computer, let alone latest gadgets&#8230; if there were any! But now days have changed. So changed the technology, people and of course young people. Perhaps, the young ones change most rapidly, they are becoming more intelligent, smart and tech loving. For example, if you are not sure about something on your newly bought gadget, as an example, iPad, ask you son, younger brother or a kid nearby, be sure they will get it!</p>
<p>Why should not they? Technology became an important integral part of School system. Not only to the system but also with the students. Education is much friendly and effective by the use proper devices especially computers, notebooks and also gadgets like iPad. My school going cousin came to visit me last month. His parent gave him netbook and he is using it for education purpose. While his visit, we had lots of fun together, yet he did not need to cease his science project work with his other teammates. The netbook helped connected them!</p>
<p>One of my fellow workers bought an iPad recently. He shared with a laugh, before he could get along with the device; his 8-year son downloaded some educational app from the app store, which includes graphic calculator, memory test, vocabulary apps and some other! Certainly this made teaching more interesting and fun.</p>
<p>Now its time for our schools and teachers to embrace technology more in educating the students. A lesson, a workshop, demonstration or teaching can be more effective and reach into the pupil mind by the support of proper technology and tools. Not sure how to do that? Don&#8217;t worry, there are experts like <a href="http://www.schooltechnology.org">school technology</a> who are showing schools and teachers how to successfully integrate the right education technology into their lessons. Lets try technology!</p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Ftechnology%2Ftech-for-teach%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Ftechnology%2Ftech-for-teach%2F" height="61" width="51" /></a></div><div align="left" style="float:left;padding:5px 5px 0px 0px;"><a name="fb_share" type="button_count" share_url="http://amanpages.com/wordpress/technology/tech-for-teach/"></a></div><fb:share-button href="http://amanpages.com/wordpress/technology/tech-for-teach/" type="button_count"></fb:share-button><img src="http://feeds.feedburner.com/~r/amanpages/~4/i2uanVJ2Uqg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amanpages.com/wordpress/technology/tech-for-teach/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://amanpages.com/wordpress/technology/tech-for-teach/</feedburner:origLink></item>
		<item>
		<title>FacebookAgent and TwitterAgent now on Google code</title>
		<link>http://feedproxy.google.com/~r/amanpages/~3/omZXIg8JOUg/</link>
		<comments>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-and-twitteragent-now-on-google-code/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 07:57:44 +0000</pubDate>
		<dc:creator>Aman</dc:creator>
				<category><![CDATA[iPhone App Development]]></category>
		<category><![CDATA[facebookagent]]></category>

		<guid isPermaLink="false">http://amanpages.com/?p=156</guid>
		<description><![CDATA[<img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/>FacebookAgent and TwitterAgent classes are released as Open Source project in google code. You are welcome to join the project... any update or bug report is highly appreciated.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-and-twitteragent-now-on-google-code%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-and-twitteragent-now-on-google-code%2F" height="61" width="51" /></a></div><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/><p>For my personal use I wrote few classes for sharing feeds on facebook and twitter. Though these classes are not well tested yet but I shared them from this site.</p>
<p>I was very excited and inspired by many people who used it, thanked me, reported bugs and even some gave me fixes with feature idea. I gratefully thank them all.</p>
<p>Now, I think if I alone want to maintain these code, it may not be good enough. So I ask for your help. Please join this project and lets help many other people who are using it including ourselves.</p>
<p>If you are interested to join, visit the the project on google code:<a href="http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/">http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/</a></p>
<p><a href="http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/"><img alt="" src="http://www.gstatic.com/codesite/ph/images/defaultlogo.png" title="Facebook Twitter Integrate to iPhone" class="alignnone" width="48" height="48" /></a></p>
<p>You can also send me private message to my email address which can be found on the project home.</p>
<p>Thanks for your perticipation <img src='http://amanpages.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-and-twitteragent-now-on-google-code%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-and-twitteragent-now-on-google-code%2F" height="61" width="51" /></a></div><div align="left" style="float:left;padding:5px 5px 0px 0px;"><a name="fb_share" type="button_count" share_url="http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-and-twitteragent-now-on-google-code/"></a></div><fb:share-button href="http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-and-twitteragent-now-on-google-code/" type="button_count"></fb:share-button><img src="http://feeds.feedburner.com/~r/amanpages/~4/omZXIg8JOUg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-and-twitteragent-now-on-google-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-and-twitteragent-now-on-google-code/</feedburner:origLink></item>
		<item>
		<title>iPhone IBoutlet should be released manually ?</title>
		<link>http://feedproxy.google.com/~r/amanpages/~3/G1tRI9wpiQw/</link>
		<comments>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/iphone-iboutlet-should-be-released-manually/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 10:47:00 +0000</pubDate>
		<dc:creator>Aman</dc:creator>
				<category><![CDATA[iPhone App Development]]></category>

		<guid isPermaLink="false">http://amanpages.com/?p=144</guid>
		<description><![CDATA[<img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/>If you google this question, you will find many answers. Some says yes, some says no. Here I am showing the what should be done with the help of instrument ObjectAlloc graph.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Fiphone-iboutlet-should-be-released-manually%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Fiphone-iboutlet-should-be-released-manually%2F" height="61" width="51" /></a></div><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/><p>If you google this question, you will find many answers. Some says yes, some says no. Here I am showing the results using instrument ObjectAlloc graph.</p>
<p><em><strong>Background:</strong></em></p>
<p>I have to use a view controller with a xib. The xib should have a button which need to be connected to an outlet in the view controller.</p>
<p><em><strong>Best Practice:</strong></em></p>
<p>In the view controller .h file, declare a UIButton* and a property like below:</p>
<pre class="c++" name="code">

UIButton* btnButton;

...

@property(nonatomic, retain) IBOutlet UIButton* btnButton;

in the .m file synthesize and release the button in the dealloc function like:

@sysnthesize btnButton

...

- (void) dealloc{

btnButton =nil;

[super release];

}
</pre>
<p>Now, using in the interface builder connect the button.</p>
<p><strong><em>What happens now:</em></strong></p>
<p>As said in the apple <a href="http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/LoadingResources/CocoaNibs/CocoaNibs.html">documentation</a> :</p>
<blockquote><p>Each time you ask the NSBundle or NSNib class to load a nib file, the underlying code creates a new copy of the objects in that file and returns them to you. The nib-loading code does not recycle nib file objects from a previous load attempt. Because each set of objects is a new copy, your code is responsible for releasing those objects when it is done with them. How you release the objects depends on the platform and on the memory model in use. Table 2-1 lists the supported platform and memory model configurations and the nib retention behavior associated with each one.</p>
<p>&#8230;bla bla&#8230;</p>
<p>Objects in the nib file are created with a retain count of 1 and then autoreleased. As it rebuilds the object hierarchy, however, UIKit reestablishes connections between the objects using the setValue:forKey: method, which uses the available setter method or retains the object by default if no setter method is available. If you define outlets for nib-file objects, you should also define a setter method for accessing that outlet. Setter methods for outlets should retain their values, and setter methods for outlets containing top-level objects must retain their values to prevent them from being deallocated. If you do not store the top-level objects in outlets, you must retain either the array returned by the loadNibNamed:owner:options: method or the objects inside the array to prevent those objects from being released prematurely.</p></blockquote>
<p><em><strong>How we practice often:</strong></em></p>
<p>In the view controller .h file, declare a UIButton* and a property like below:</p>
<pre class="c++" name="code">

IBOutlet UIButton* btnButton;

in the .m file synthesize and release the button in the dealloc function like:

- (void) dealloc{

[btnButton release]; // should we need to do this?!!

[super release];

}
</pre>
<p><strong><em>What&#8217;s the question?!!</em></strong></p>
<p>The question is that if we really need to release the btnButton in the dealloc method.</p>
<p>well, we can go on discussion and ultimately we may find that YES, we need to. The outlets should be released in the dealloc. Backing up this conclusion I created a simple project with two view controller one having 6 button connected as mentioned last.</p>
<p>If we  release in the dealloc method, we can see that memory foot print remains the same after closing the last view.</p>
<div id="attachment_145" class="wp-caption alignnone" style="width: 267px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/02/Picture-10.png"><img class="size-full wp-image-145" title="outlest are released in the dealloc method" src="http://amanpages.com/wordpress/wp-content/uploads/2010/02/Picture-10.png" alt="" width="257" height="159" /></a><p class="wp-caption-text">outlest are released in the dealloc method</p></div>
<p>Now, if we don&#8217;t release the outlets or simply assign them nil value we will find memory footprint is increased! See the image below:</p>
<div id="attachment_148" class="wp-caption alignnone" style="width: 278px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/02/Picture-12.png"><img class="size-full wp-image-148" title="outlets are assigned nil value or not released" src="http://amanpages.com/wordpress/wp-content/uploads/2010/02/Picture-12.png" alt="" width="268" height="123" /></a><p class="wp-caption-text">outlets are not released or assigned nil value</p></div>
<p><em><strong>Conclusion:</strong></em></p>
<p>We better release the outlets in the dealloc method.</p>
<p>Actually rom the memory management point of view, it doesn&#8217;t matter whether you use property or instance variable of IBOutlet. In fact,<br />
IBOutlet does nothing but a help to the Interface builder finding the connectors. Behind the seen, same thing happens for both the way, so you have to release any outlets in the dealloc method.</p>
<p>Download  the <a href="http://amanpages.com/wordpress/wp-content/uploads/2010/02/nibtest.zip">Sample Project demonstrating memory footprint for  outlets</a>.</p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Fiphone-iboutlet-should-be-released-manually%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Fiphone-iboutlet-should-be-released-manually%2F" height="61" width="51" /></a></div><div align="left" style="float:left;padding:5px 5px 0px 0px;"><a name="fb_share" type="button_count" share_url="http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/iphone-iboutlet-should-be-released-manually/"></a></div><fb:share-button href="http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/iphone-iboutlet-should-be-released-manually/" type="button_count"></fb:share-button><img src="http://feeds.feedburner.com/~r/amanpages/~4/G1tRI9wpiQw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/iphone-iboutlet-should-be-released-manually/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/iphone-iboutlet-should-be-released-manually/</feedburner:origLink></item>
		<item>
		<title>Two years in Tripprt :)</title>
		<link>http://feedproxy.google.com/~r/amanpages/~3/FEJ2l5YZ8ck/</link>
		<comments>http://amanpages.com/wordpress/random/two-years-in-tripprt/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 08:25:59 +0000</pubDate>
		<dc:creator>Aman</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://amanpages.com/?p=137</guid>
		<description><![CDATA[<img src="http://amanpages.com/wordpress//wp-content/uploads/icons/lightbulb.png" width="32" height="32" alt="" title="Random" /><br/>On 12 Feb I completed my two years in Trippert Labs though technically little short of two years in trippert since it was acquired by PlayDom recently.
First of all, I thank Raju vai aka The Hungrycoder to arrange an occasion where I met Hasin vai. I am really grateful to this man to recruit me [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Frandom%2Ftwo-years-in-tripprt%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Frandom%2Ftwo-years-in-tripprt%2F" height="61" width="51" /></a></div><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/lightbulb.png" width="32" height="32" alt="" title="Random" /><br/><p>On 12 Feb I completed my two years in <a href="http://www.trippertlabs.com/">Trippert Labs</a> though technically little short of two years in trippert since it was acquired by <a href="http://www.playdom.com">PlayDom</a> recently.</p>
<p>First of all, I thank Raju vai aka <a href="http://hungrycoder.xenexbd.com/">The Hungrycoder</a> to arrange an occasion where I met <a href="http://hasin.wordpress.com">Hasin</a> vai. I am really grateful to this man to recruit me in Trippert Labs&#8230; credits goes to my collection of technical books, not my knowledge <img src='http://amanpages.com/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . That was 12th February, 2008.</p>
<p>I was a c++ developer and just before joining I was working at Uniqa as Team Lead in a settop box app on embedded linux platform.<br />
After joining at trippert he guided me to learn PHP&#8230; what could be a better opportunity learning this language!?</p>
<p>In my first project I worked with <a href="http://junalontherun.com/">Junal vai</a> and <a href="http://www.syamantics.com/">Anupom</a> vai, they were very supporting and helped me to learn the new technology.</p>
<p>I found a very different environment here&#8230; very friendly, very cooperating. Trippert believes in self responsibility. We work, we play &#8230; we enjoy every bit together. Trippert labs offers the best environment in BD, i dunno about other country. Its the environment which gave me the freedom to be myself as whatever I am.  Every one is has a big heart and great mind.</p>
<p>Anyway, lots of memory&#8230; lets share something about some of us now (random order):</p>
<p><img class="alignnone" title="Trippet Freaks" src="http://photos-f.ak.fbcdn.net/hphotos-ak-snc3/hs240.snc3/22773_302255077242_753867242_3392867_7217793_n.jpg" alt="" width="362" height="203" /><br />
Sagar: The crack-head-freak. All the new comers have to &#8220;enjoy&#8221; his 3 hours long interesting session. He loves to visit islands and beaches but blind folds his eyes not to see sea.</p>
<p>Anupom: adorable freak. He invented some cute dancing terminology for projects. I love to talk to him on various intellectual issues. Good thinker and innovative.</p>
<p>Ahsan: crazy freak. He is the Boss here without doing any &#8220;bossing&#8221;. Excellent photographer and a passionate <a href="http://escapefromcity.com/">traveler</a>. he has some great and excellent personal traits ( does it sound like oiling&#8230;.. if yes ignore this line <img src='http://amanpages.com/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ).</p>
<p>Manzil: TT-freak. He is our qc lead and maintains a note book  full of strategy to play against each player. He should be hired by our national TT team as analyst.</p>
<p>Junal: michka-freak. He looks very gentleman but &#8230;..</p>
<p>Tapos: samba-freak. He can dance samba very well and dance often while playing TT as a strategy against his opponent</p>
<p>Hasan: eat-freak. He loves to eat and loves to eat.</p>
<p>Babu:  phone-n-photo-freak.<span style="text-decoration: line-through;"> Either he is working or he is talking privately with some one&#8230;. He loves to take his photo with various angle to promote his chance to attract yet another girl.</span> HE IS A VERY GOOD GUY AND MY CLOSE FRIEND( and did not request me anything).</p>
<p>Pavel: photography-freak:  he is also a michka freak. Loves photography and does it very well&#8230;. though not sure if credit ges to his skill or his nikon camera.</p>
<p>Subeen: maolana-freak: he is our official huzur. he does many monajats and also part time RJ on Radio Hujur 42.0fm. Very talented song writer and poet.</p>
<p>Mushfique:  sexy-freak: well this term is not give by me instead by all others.. his name is also fexi.</p>
<p>Shohag: natural-freak. he is an example of an ideal freak.</p>
<p>Topu vai: geek-freak: Truly a freak by geek. Always doing some cool stuff with his lappy.</p>
<p>Jubair: sing-freak: excellent singer.</p>
<p>Adnan: cool-freak: the cold blooded freak.</p>
<p>Masum: silent-freak: I heard him talking after two days he joined. He hardly talks. Writer of Copa Virus.</p>
<p>Asif: time-freak: he loves to stay at office and usually the last person to sign off.</p>
<p>Shourav: The confused-freak : he is the greatest freak among us.</p>
<p>Saumen: stylish-freak: u can never find him normal dress&#8230; i mean &#8220;odd dress&#8221;</p>
<p>Aman: normal person. The only normal person in bd team <img src='http://amanpages.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>anyway&#8230;. I wish I had more time and write about rest of you.</p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Frandom%2Ftwo-years-in-tripprt%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Frandom%2Ftwo-years-in-tripprt%2F" height="61" width="51" /></a></div><div align="left" style="float:left;padding:5px 5px 0px 0px;"><a name="fb_share" type="button_count" share_url="http://amanpages.com/wordpress/random/two-years-in-tripprt/"></a></div><fb:share-button href="http://amanpages.com/wordpress/random/two-years-in-tripprt/" type="button_count"></fb:share-button><img src="http://feeds.feedburner.com/~r/amanpages/~4/FEJ2l5YZ8ck" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amanpages.com/wordpress/random/two-years-in-tripprt/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		<feedburner:origLink>http://amanpages.com/wordpress/random/two-years-in-tripprt/</feedburner:origLink></item>
		<item>
		<title>TwitterAgent Tutorial : Tweet from iPhone app in one line code with auto tinyURL</title>
		<link>http://feedproxy.google.com/~r/amanpages/~3/lxL6yL1XKrM/</link>
		<comments>http://amanpages.com/wordpress/sample-iphone-example-project/twitteragent-tutorial-tweet-from-iphone-app-in-one-line-code-with-auto-tinyurl/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 10:32:02 +0000</pubDate>
		<dc:creator>Aman</dc:creator>
				<category><![CDATA[Example Project]]></category>
		<category><![CDATA[iPhone App Development]]></category>
		<category><![CDATA[twitteragent]]></category>

		<guid isPermaLink="false">http://amanpages.com/?p=111</guid>
		<description><![CDATA[<img src="http://amanpages.com/wordpress//wp-content/uploads/icons/samplecode.png" width="36" height="36" alt="" title="Example Project" /><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/>Integrate Twitter from you iPhone application using TwitterAgent. With TwitterAgent, you can do it by single line of code! Also you can auto shorten any url using tinyURL and attach with past just passing one extra parameter!]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Ftwitteragent-tutorial-tweet-from-iphone-app-in-one-line-code-with-auto-tinyurl%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Ftwitteragent-tutorial-tweet-from-iphone-app-in-one-line-code-with-auto-tinyurl%2F" height="61" width="51" /></a></div><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/samplecode.png" width="36" height="36" alt="" title="Example Project" /><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/><blockquote><p><strong> </strong></p>
<div id="_mcePaste"><strong>XAuth was not used in my classes,  hope to integrate soon.</strong></div>
<div id="_mcePaste"><strong>Till then please use this:<a href=" https://github.com/vodkhang/Twitter-XAuth-and-Sharing"> https://github.com/vodkhang/Twitter-XAuth-and-Sharing</a></strong></div>
<div id="_mcePaste"><strong>Vodkhang used the UI used in TwitterAgent with XAuth</strong></div>
</blockquote>
<p>Perhaps, you have used the <a href="http://amanpages.com/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone/">FacebookAgent</a> in your apps. I gratefully thank the fellows from  <a href="http://iphonedevsdk.com/" target="_blank">iphonedevsdk.com</a> and other iPhone developers who mailed me saying the class helped them. These are actual inspiration of sharing code with all.</p>
<p>Now, I would like to share my TwitterAgent class with you. Using TwitterAgent you can now integrate twitter in your iPhone app seamlessly. Additionally, you can also specify a URL and can make it tinyURL on the fly just passing an extra parameter!</p>
<p>Here are the steps:</p>
<p>1. Download <a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/TwitterAgent.zip">TwitterAgent</a> and <a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/BusyAgent.zip">BusyAgent</a> and add them into your project.</p>
<p>2. Import TwitterAgent.h in the file where we want to use</p>
<p>3. Now call any of these function, they are self explanatory!</p>
<pre class="c++">[[TwitterAgent defaultAgent] twit ];

[[TwitterAgent defaultAgent] twit:@"Search with google!" ];

[[TwitterAgent defaultAgent] twit:@"Search with google!" withLink:@"http://www.google.com" makeTiny:NO];

[[TwitterAgent defaultAgent] twit:@"Search with google!" withLink:@"http://www.google.com" makeTiny:YES];</pre>
<p>Screenshots:</p>
<div id="attachment_112" class="wp-caption alignnone" style="width: 294px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-1.png"><img class="size-full wp-image-112" title="Login To Twitter" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-1.png" alt="" width="284" height="198" /></a><p class="wp-caption-text">Login To Twitter</p></div>
<p>You only need to login once in one session. Login information will be saved to the device and will be used next time the application starts.</p>
<p><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-7.png"><img class="size-full wp-image-113 " title="[[TwitterAgent defaultAgent] twit];" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-7.png" alt="" width="292" height="233" /></a></p>
<pre class="c++">[[TwitterAgent defaultAgent] twit];</pre>
<p><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-6.png"><img class="size-full wp-image-114 " title="twit with message" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-6.png" alt="" width="289" height="227" /></a></p>
<pre class="c++">[[TwitterAgent defaultAgent] twit:@"Search with google!"];</pre>
<p><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-8.png"><img class="size-full wp-image-115" title="Twit with message and URL" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-8.png" alt="" width="286" height="223" /></a></p>
<pre class="c++">[[TwitterAgent defaultAgent] twit:@"Search with google!" withLink:@"http://www.google.com" makeTiny:NO];</pre>
<p><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-5.png"><img class="size-full wp-image-117" title="Twit with message and tiny url" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-5.png" alt="" width="287" height="225" /></a></p>
<pre class="c++">[[TwitterAgent defaultAgent] twit:@"Search with google!" withLink:@"http://www.google.com" makeTiny:YES];</pre>
<p>Hope it will come into your help. Cheers!</p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Ftwitteragent-tutorial-tweet-from-iphone-app-in-one-line-code-with-auto-tinyurl%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fsample-iphone-example-project%2Ftwitteragent-tutorial-tweet-from-iphone-app-in-one-line-code-with-auto-tinyurl%2F" height="61" width="51" /></a></div><div align="left" style="float:left;padding:5px 5px 0px 0px;"><a name="fb_share" type="button_count" share_url="http://amanpages.com/wordpress/sample-iphone-example-project/twitteragent-tutorial-tweet-from-iphone-app-in-one-line-code-with-auto-tinyurl/"></a></div><fb:share-button href="http://amanpages.com/wordpress/sample-iphone-example-project/twitteragent-tutorial-tweet-from-iphone-app-in-one-line-code-with-auto-tinyurl/" type="button_count"></fb:share-button><img src="http://feeds.feedburner.com/~r/amanpages/~4/lxL6yL1XKrM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amanpages.com/wordpress/sample-iphone-example-project/twitteragent-tutorial-tweet-from-iphone-app-in-one-line-code-with-auto-tinyurl/feed/</wfw:commentRss>
		<slash:comments>88</slash:comments>
		<feedburner:origLink>http://amanpages.com/wordpress/sample-iphone-example-project/twitteragent-tutorial-tweet-from-iphone-app-in-one-line-code-with-auto-tinyurl/</feedburner:origLink></item>
		<item>
		<title>Gmail and Task notification by Google notifier for Mac OSX</title>
		<link>http://feedproxy.google.com/~r/amanpages/~3/7Jk7Vi26muI/</link>
		<comments>http://amanpages.com/wordpress/technology/gmail-and-task-notification-by-google-notifier-for-mac-osx/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 10:37:38 +0000</pubDate>
		<dc:creator>Aman</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[gadgets]]></category>

		<guid isPermaLink="false">http://amanpages.com/?p=91</guid>
		<description><![CDATA[<img src="http://amanpages.com/wordpress//wp-content/uploads/icons/gadgets.png" width="36" height="36" alt="" title="Technology" /><br/>Using Google Notifier step by step. This article will show you how google notifier can help you. A detail installation and configuration procedure is also described.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Ftechnology%2Fgmail-and-task-notification-by-google-notifier-for-mac-osx%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Ftechnology%2Fgmail-and-task-notification-by-google-notifier-for-mac-osx%2F" height="61" width="51" /></a></div><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/gadgets.png" width="36" height="36" alt="" title="Technology" /><br/><p>I am quite dependent on  google services, specially gmail, reader, calendar and of course Google Wave. Like many others, it gives me excellent support in managing my tasks, update to the web world and prompt communication.</p>
<p>But one thing that bothered me is to switch to the gmail tab in my browser to check if any new mail is received. Well, I could use Apple Mail and many other out there. In fact, I tried lots of them but none could replace the browser.</p>
<p>Recently I installed Google Notifier! Its amazing! Minimal yet complete. Here is a step by step instruction to use it.</p>
<p>First go to http://toolbar.google.com/gmail-helper/notifier_mac.html.</p>
<div id="attachment_92" class="wp-caption alignnone" style="width: 310px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-35.png"><img class="size-medium wp-image-92" title="Gmail Notifier Home page" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-35-300x203.png" alt="" width="300" height="203" /></a><p class="wp-caption-text">Gmail Notifier Home Page</p></div>
<p>Click the button on the right saying: &#8220;Download Google Notifier for Mac&#8221;</p>
<p>After its been downloaded, click the dmg file if not already the image is mounted.  It will ask for a confirmation:</p>
<div id="attachment_93" class="wp-caption alignnone" style="width: 310px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-28.png"><img class="size-medium wp-image-93" title="Google Notifier Mound Confirmation" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-28-300x108.png" alt="" width="300" height="108" /></a><p class="wp-caption-text">Google Notifier Mound Confirmation</p></div>
<p>Click &#8220;Open&#8221;. It will mount the image and following window will appear:</p>
<div id="attachment_94" class="wp-caption alignnone" style="width: 310px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-27.png"><img class="size-medium wp-image-94" title="Install Google Notifier" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-27-300x231.png" alt="" width="300" height="231" /></a><p class="wp-caption-text">Install Google Notifier</p></div>
<p>Drag the Left side Application package to the Application directory folder on the left. Thats it!</p>
<p>Now, press Command + Space to open up the spotlight search prompt. Type Google Notifier.</p>
<div id="attachment_95" class="wp-caption alignnone" style="width: 310px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-40.png"><img class="size-medium wp-image-95" title="Searching Google Notifier in Spotlight" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-40-300x114.png" alt="" width="300" height="114" /></a><p class="wp-caption-text">Searching Google Notifier in Spotlight</p></div>
<p>Press Enter when Google Notifier is selected in the list.</p>
<p>Now enter your gmail account information. It can also be changed from preference.</p>
<div id="attachment_96" class="wp-caption alignnone" style="width: 310px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-29.png"><img class="size-medium wp-image-96" title="Google Notifier Gmail Account Information" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-29-300x234.png" alt="" width="300" height="234" /></a><p class="wp-caption-text">Google Notifier Gmail Account Information</p></div>
<p>Thats it! look at your top bar!</p>
<div id="attachment_97" class="wp-caption alignnone" style="width: 310px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-30.png"><img class="size-medium wp-image-97" title="Google Notifier Installed" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-30-300x34.png" alt="" width="300" height="34" /></a><p class="wp-caption-text">Google Notifier Installed</p></div>
<p>Now, if you have any mail or calendar event, the corresponding icon will be colorized with a count!</p>
<div id="attachment_98" class="wp-caption alignnone" style="width: 297px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-41.png"><img class="size-full wp-image-98" title="Google Notifier! You Got Mail!" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-41.png" alt="" width="287" height="27" /></a><p class="wp-caption-text">Google Notifier! You Got Mail!</p></div>
<p>Optionally you may also configure <a title="Go to Growl web site" href="http://growl.info/" target="_blank">Growl</a> and a growl like this:</p>
<div id="attachment_99" class="wp-caption alignnone" style="width: 310px"><a href="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-34.png"><img class="size-medium wp-image-99" title="Google Notifier with Growl!" src="http://amanpages.com/wordpress/wp-content/uploads/2010/01/Picture-34-300x192.png" alt="" width="300" height="192" /></a><p class="wp-caption-text">Google Notifier with Growl!</p></div>
<p>Now, I can browse the web relaxed! If any important mail requiring urgent reply, Google will serve me that info <img src='http://amanpages.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Ftechnology%2Fgmail-and-task-notification-by-google-notifier-for-mac-osx%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Ftechnology%2Fgmail-and-task-notification-by-google-notifier-for-mac-osx%2F" height="61" width="51" /></a></div><div align="left" style="float:left;padding:5px 5px 0px 0px;"><a name="fb_share" type="button_count" share_url="http://amanpages.com/wordpress/technology/gmail-and-task-notification-by-google-notifier-for-mac-osx/"></a></div><fb:share-button href="http://amanpages.com/wordpress/technology/gmail-and-task-notification-by-google-notifier-for-mac-osx/" type="button_count"></fb:share-button><img src="http://feeds.feedburner.com/~r/amanpages/~4/7Jk7Vi26muI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amanpages.com/wordpress/technology/gmail-and-task-notification-by-google-notifier-for-mac-osx/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://amanpages.com/wordpress/technology/gmail-and-task-notification-by-google-notifier-for-mac-osx/</feedburner:origLink></item>
		<item>
		<title>FacebookAgent update: Now upload a photo and then change status in a single call using Facebook connect for iPhone</title>
		<link>http://feedproxy.google.com/~r/amanpages/~3/eQdCIWW_szw/</link>
		<comments>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 20:11:41 +0000</pubDate>
		<dc:creator>Aman</dc:creator>
				<category><![CDATA[iPhone App Development]]></category>
		<category><![CDATA[facebookagent]]></category>

		<guid isPermaLink="false">http://amanpages.com/?p=79</guid>
		<description><![CDATA[<img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/>Using facebook connect for iPhone you can now upload a photo and then change user status by calling a single method of FacebookAgent!]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone%2F" height="61" width="51" /></a></div><img src="http://amanpages.com/wordpress//wp-content/uploads/icons/32_iphone.png" width="40" height="40" alt="" title="iPhone App Development" /><br/><blockquote><p><strong>GET THE LATEST CODE FROM HERE:<a href=" http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/"> http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/</a><br />
PLEASE JOIN THE PROJECT<br />
</strong></p></blockquote>
<p>In my <a href="http://amanpages.com/sample-iphone-example-project/facebookagent-easy-way-to-integrate-facebook-connect-in-iphone-apps-and-write-minimum-code-to-publish-feed-change-status/">previous post</a> I shared a FacebookAgent to simplify  integrating Facebook connect in iPhone and using common actions without<br />
handling login, permission check etc but in a single method call like:</p>
<ul>
<li>Publish feed</li>
<li>Change status</li>
<li>Upload photo</li>
</ul>
<div>Scotopia from iphonedevsdk.com shared an <a title="URL to the post at iphonedevsdk.com" href="http://www.iphonedevsdk.com/forum/iphone-sdk-tools-utilities/37318-simple-way-integrate-facebook-reused-reduced-code-one-line-code-do-actions.html#post158868" target="_blank">excellent idea</a> of implementing a method which would upload a photo and then update status.</div>
<div>I have updated the FacebookAgent according to that. Now it has few more functions:</div>
<pre  name = "code" class="c++">
/**
 * Upload photo
 */
- (void) uploadPhoto:(NSString*)imageurl;
- (void) uploadPhotoAtURL:(NSString*)imageurl withCaption:(NSString*)captionOrNil toAlbum:(NSString*)aidOrNil;
- (void) uploadPhotoAsData:(NSData*)imagedata withCaption:(NSString*)captionOrNil toAlbum:(NSString*)aidOrNil;

/**
 * Upload photo with status
 */
- (void) uploadPhoto:(NSString*)imageurl withStatus:(NSString*)status;
- (void) uploadPhotoAtURL:(NSString*)imageurl withStatus:(NSString*)status caption:(NSString*)captionOrNil toAlbum:(NSString*)aidOrNil;
- (void) uploadPhotoAsData:(NSData*)imagedata withStatus:(NSString*)status caption:(NSString*)captionOrNil toAlbum:(NSString*)aidOrNil;

/**
 * Ask permission to auto approve uploaded photo and add photo to an album.
 */
- (void) askUplaoadPhotoToAlbumPermission;
</pre>
<div><a title="FacebokAgent, one call to upload photo and then change status by a single method!" href="http://www.amanpages.com/wordpress/wp-content/uploads/2010/01/FacebookAgent.zip">Download the update source code from here.</a></div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Famanpages.com%2Fwordpress%2Fiphone-app-development-core-sdk-cocoa%2Ffacebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone%2F" height="61" width="51" /></a></div><div align="left" style="float:left;padding:5px 5px 0px 0px;"><a name="fb_share" type="button_count" share_url="http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone/"></a></div><fb:share-button href="http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone/" type="button_count"></fb:share-button><img src="http://feeds.feedburner.com/~r/amanpages/~4/eQdCIWW_szw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone/feed/</wfw:commentRss>
		<slash:comments>73</slash:comments>
		<feedburner:origLink>http://amanpages.com/wordpress/iphone-app-development-core-sdk-cocoa/facebookagent-update-now-upload-a-photo-and-then-change-status-in-a-single-call-using-facebook-connect-for-iphone/</feedburner:origLink></item>
	</channel>
</rss>

