<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: iPhone Facebook Connect: How Do I publish feed with FacebookAgent</title>
	<atom:link href="http://amanpages.com/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/feed/" rel="self" type="application/rss+xml" />
	<link>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/</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>Thu, 02 Feb 2012 11:47:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: LSAT Test Prep</title>
		<link>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/comment-page-1/#comment-239</link>
		<dc:creator>LSAT Test Prep</dc:creator>
		<pubDate>Sat, 25 Dec 2010 02:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://amanpages.com/?p=201#comment-239</guid>
		<description>There is a button on the front left of the base that allows you to release the lock and adjust the angle. There is a cutout in the middle of the plastic</description>
		<content:encoded><![CDATA[<p>There is a button on the front left of the base that allows you to release the lock and adjust the angle. There is a cutout in the middle of the plastic</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaikh Sonny Aman</title>
		<link>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/comment-page-1/#comment-216</link>
		<dc:creator>Shaikh Sonny Aman</dc:creator>
		<pubDate>Wed, 15 Sep 2010 12:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://amanpages.com/?p=201#comment-216</guid>
		<description>This project is now obsolete since I found facebook released a great class!!&lt;br&gt;check out here : &lt;a href=&quot;http://github.com/facebook/facebook-ios-sdk&quot; rel=&quot;nofollow&quot;&gt;http://github.com/facebook/facebook-ios-sdk&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>This project is now obsolete since I found facebook released a great class!!<br />check out here : <a href="http://github.com/facebook/facebook-ios-sdk" rel="nofollow">http://github.com/facebook/facebook-ios-sdk</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shaikh Sonny Aman</title>
		<link>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/comment-page-1/#comment-217</link>
		<dc:creator>Shaikh Sonny Aman</dc:creator>
		<pubDate>Wed, 15 Sep 2010 12:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://amanpages.com/?p=201#comment-217</guid>
		<description>This project is now</description>
		<content:encoded><![CDATA[<p>This project is now</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TinyTechnician</title>
		<link>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/comment-page-1/#comment-201</link>
		<dc:creator>TinyTechnician</dc:creator>
		<pubDate>Mon, 16 Aug 2010 03:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://amanpages.com/?p=201#comment-201</guid>
		<description>I seem to have an issue with remaining logged into FB but not really.&lt;br&gt;&lt;br&gt;Steps to Repro:&lt;br&gt;1) Launch App&lt;br&gt;2) Use FacebookAgent to login (just login, DON&#039;T update FB status or publish to feed or anything)&lt;br&gt;3) Quit/Close App&lt;br&gt;4) Launch App Again&lt;br&gt;5) Use FacebookAgent to check if user is logged in (it&#039;ll return YES that the user is logged in).&lt;br&gt;6) Try and update status or publish to feed...&lt;br&gt;&lt;br&gt;Here a facebook login dialog is presented as if the user isn&#039;t logged into FB connect.  Not sure why this dialog is popping up if the user is still logged into FB connect.  So either the user is not logged in and FacebookAgent is incorrect when checking the status or the user is logged in but somehow another login dialog pops up.&lt;br&gt;&lt;br&gt;NOTE: The login dialog on the second launch of the app (the unexpected one) is different than the FB connect dialog that FacebookAgent presents for the first time when logging in.&lt;br&gt;&lt;br&gt;Anyone else have this issue or know how to solve it?  Obviously I can always have the FacebookAgent logout before the app exists but this is not desirable.&lt;br&gt;&lt;br&gt;Thanks for the FacebookAgent package, it has really helped me easily add FB integration to my app.  Again, thanks!</description>
		<content:encoded><![CDATA[<p>I seem to have an issue with remaining logged into FB but not really.</p>
<p>Steps to Repro:<br />1) Launch App<br />2) Use FacebookAgent to login (just login, DON&#39;T update FB status or publish to feed or anything)<br />3) Quit/Close App<br />4) Launch App Again<br />5) Use FacebookAgent to check if user is logged in (it&#39;ll return YES that the user is logged in).<br />6) Try and update status or publish to feed&#8230;</p>
<p>Here a facebook login dialog is presented as if the user isn&#39;t logged into FB connect.  Not sure why this dialog is popping up if the user is still logged into FB connect.  So either the user is not logged in and FacebookAgent is incorrect when checking the status or the user is logged in but somehow another login dialog pops up.</p>
<p>NOTE: The login dialog on the second launch of the app (the unexpected one) is different than the FB connect dialog that FacebookAgent presents for the first time when logging in.</p>
<p>Anyone else have this issue or know how to solve it?  Obviously I can always have the FacebookAgent logout before the app exists but this is not desirable.</p>
<p>Thanks for the FacebookAgent package, it has really helped me easily add FB integration to my app.  Again, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irene</title>
		<link>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/comment-page-1/#comment-200</link>
		<dc:creator>Irene</dc:creator>
		<pubDate>Wed, 11 Aug 2010 17:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://amanpages.com/?p=201#comment-200</guid>
		<description>Any progress on that? I think it&#039;s important to let the users know if their content was published properly..</description>
		<content:encoded><![CDATA[<p>Any progress on that? I think it&#39;s important to let the users know if their content was published properly..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/comment-page-1/#comment-192</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 13 Jul 2010 18:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://amanpages.com/?p=201#comment-192</guid>
		<description>Hi Aman,&lt;br&gt;&lt;br&gt;This sample code is great, it greatly simplifies the process of accessing the Facebook Connect API, hover I have one issue with the implementation of the code. I find it rather difficult to have to subclass the &quot;MyCustomController&quot; every time I create a new view controller. Some of my view controllers are already custom classes that I have to make subclasses of &quot;MyCustomController&quot;. Is there there an easier way to implement FacebookAgent?</description>
		<content:encoded><![CDATA[<p>Hi Aman,</p>
<p>This sample code is great, it greatly simplifies the process of accessing the Facebook Connect API, hover I have one issue with the implementation of the code. I find it rather difficult to have to subclass the &#8220;MyCustomController&#8221; every time I create a new view controller. Some of my view controllers are already custom classes that I have to make subclasses of &#8220;MyCustomController&#8221;. Is there there an easier way to implement FacebookAgent?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali</title>
		<link>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/comment-page-1/#comment-179</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Fri, 25 Jun 2010 21:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://amanpages.com/?p=201#comment-179</guid>
		<description>Hi, I&#039;m pretty frustated in trying to implement this into my project. I&#039;ve tried many ways but with no success. Please help me with this. Thanks a lot. Here&#039;s my code.&lt;br&gt;`@implementation ScoresLayer&lt;br&gt;&lt;br&gt;- (id)init {&lt;br&gt;	if ((self = [super init])) {&lt;br&gt;		CGSize winSize = [[CCDirector sharedDirector] winSize];&lt;br&gt;		CCSprite *bg = [CCSprite spriteWithFile:@&quot;menubg1.png&quot;];		&lt;br&gt;		&lt;br&gt;		[bg setPosition:ccp(winSize.width / 2, winSize.height / 2)];&lt;br&gt;		[self addChild:bg z:0];&lt;br&gt;		&lt;br&gt;/*		[CCMenuItemFont setFontName: @&quot;American Typewriter&quot;];&lt;br&gt;		[CCMenuItemFont setFontSize:(winSize.height == 1024 ? 36 : 18)];&lt;br&gt;		CCMenuItemFont *title1 = [CCMenuItemFont itemFromString: @&quot;Sound&quot;];&lt;br&gt;		[title1 setIsEnabled:NO];&lt;br&gt;		CCMenuItemFont *title2 = [CCMenuItemFont itemFromString: @&quot;Music&quot;];&lt;br&gt;		[title2 setIsEnabled:NO];&lt;br&gt;		CCMenuItemFont *title3 = [CCMenuItemFont itemFromString: @&quot;Graphic Quality&quot;];&lt;br&gt;		[title3 setIsEnabled:NO];&lt;br&gt;		&lt;br&gt;		[CCMenuItemFont setFontName: @&quot;Marker Felt&quot;];&lt;br&gt;		[CCMenuItemFont setFontSize:(winSize.height == 1024 ? 68 : 34)];&lt;br&gt;		CCMenuItemToggle *item1 = [CCMenuItemToggle itemWithTarget:self selector:@selector(toggleSound:) items:&lt;br&gt;								   [CCMenuItemFont itemFromString: @&quot;On&quot;],&lt;br&gt;								   [CCMenuItemFont itemFromString: @&quot;Off&quot;],&lt;br&gt;								   nil];&lt;br&gt;		CCMenuItemToggle *item2 = [CCMenuItemToggle itemWithTarget:self selector:@selector(toggleMusic:) items:&lt;br&gt;								   [CCMenuItemFont itemFromString: @&quot;On&quot;],&lt;br&gt;								   [CCMenuItemFont itemFromString: @&quot;Off&quot;],&lt;br&gt;								   nil];&lt;br&gt;		CCMenuItemToggle *item3 = [CCMenuItemToggle itemWithTarget:self selector:@selector(toggleGraphic:) items:&lt;br&gt;								   [CCMenuItemFont itemFromString: @&quot;High&quot;],&lt;br&gt;								   [CCMenuItemFont itemFromString: @&quot;Low&quot;],&lt;br&gt;								   nil];&lt;br&gt;		&lt;br&gt;		if ([[VariableStore sharedVariableStore] sound])&lt;br&gt;			[item1 setSelectedIndex:0];&lt;br&gt;		else&lt;br&gt;			[item1 setSelectedIndex:1];&lt;br&gt;		&lt;br&gt;		if ([[VariableStore sharedVariableStore] music])&lt;br&gt;			[item2 setSelectedIndex:0];&lt;br&gt;		else&lt;br&gt;			[item2 setSelectedIndex:1];		&lt;br&gt;		if ([[VariableStore sharedVariableStore] hiQ])&lt;br&gt;			[item3 setSelectedIndex:0];&lt;br&gt;		else&lt;br&gt;			[item3 setSelectedIndex:1];&lt;br&gt;		&lt;br&gt;		CCMenu *menu = [CCMenu menuWithItems:&lt;br&gt;						title1, title2,&lt;br&gt;						item1, item2,&lt;br&gt;						title3,&lt;br&gt;						item3, nil];&lt;br&gt;		[menu alignItemsInColumns:&lt;br&gt;		 [NSNumber numberWithUnsignedInt:2],&lt;br&gt;		 [NSNumber numberWithUnsignedInt:2],&lt;br&gt;		 [NSNumber numberWithUnsignedInt:1],&lt;br&gt;		 [NSNumber numberWithUnsignedInt:1],&lt;br&gt;		 nil&lt;br&gt;		 ];&lt;br&gt;		&lt;br&gt;		[self addChild:menu z:1];*/&lt;br&gt;		&lt;br&gt;		CCMenuItemImage *back = [CCMenuItemImage itemFromNormalImage:@&quot;b1.png&quot; selectedImage:@&quot;b2.png&quot; target:self selector:@selector(getBack:)];&lt;br&gt;		if (winSize.height == 1024)&lt;br&gt;			[back setScale:2];&lt;br&gt;		_fb = [CCMenuItemToggle itemWithTarget:self selector:@selector(connectFB:) items:&lt;br&gt;			   [CCMenuItemImage itemFromNormalImage:@&quot;Connect_iphone.png&quot; selectedImage:@&quot;Connect_iphone.png&quot;],&lt;br&gt;			   [CCMenuItemImage itemFromNormalImage:@&quot;Logout_iphone.png&quot; selectedImage:@&quot;Logout_iphone.png&quot;],&lt;br&gt;			   nil];&lt;br&gt;		&lt;br&gt;		CCMenu *menu1 = [CCMenu menuWithItems:back, _fb, nil];&lt;br&gt;		[menu1 setPosition:CGPointZero];&lt;br&gt;		[back setPosition:ccp(winSize.width * 0.2, winSize.height * 0.1)];&lt;br&gt;		[_fb setPosition:ccp(winSize.width * 0.8, winSize.height * 0.1)];&lt;br&gt;		&lt;br&gt;		[self addChild:menu1 z:1];&lt;br&gt;		&lt;br&gt;		[self schedule:@selector(update:)];&lt;br&gt;		&lt;br&gt;		[[FacebookAgent sharedAgent] setDelegate:self];&lt;br&gt;		&lt;br&gt;/*		UIAlertView *myAlert = [[[UIAlertView alloc] initWithTitle:@&quot;New Score&quot;&lt;br&gt;														   message:@&quot;You got new score. Would you like to publish it?&quot;&lt;br&gt;														  delegate:self cancelButtonTitle:@&quot;Why Not&quot; otherButtonTitles:@&quot;No&quot;, nil] autorelease];&lt;br&gt;		[myAlert show];*/&lt;br&gt;		[[FacebookAgent sharedAgent] publishFeedWithName:@&quot;Scored 0123456789&quot; &lt;br&gt;											 captionText:@&quot;Download BurningArmor now to beat his record&quot;&lt;br&gt;												imageurl:@&quot;http://img101.imageshack.us/img101/6311/balogo.png&quot;&lt;br&gt;												 linkurl:@&quot;http://www.apple.com&quot;&lt;br&gt;									   userMessagePrompt:@&quot;What&#039;s on your mind?&quot;];&lt;br&gt;	}&lt;br&gt;	&lt;br&gt;	return self;&lt;br&gt;}&lt;br&gt;&lt;br&gt;- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {&lt;br&gt;	if (!buttonIndex)&lt;br&gt;		[[FacebookAgent sharedAgent] publishFeedWithName:@&quot;Scored 0123456789&quot; &lt;br&gt;											 captionText:@&quot;Download BurningArmor now to beat his record&quot;&lt;br&gt;												imageurl:@&quot;http://img101.imageshack.us/img101/6311/balogo.png&quot;&lt;br&gt;												 linkurl:@&quot;http://www.apple.com&quot;&lt;br&gt;									   userMessagePrompt:@&quot;What&#039;s on your mind?&quot;];&lt;br&gt;}	&lt;br&gt;&lt;br&gt;- (void)update:(ccTime)dt {&lt;br&gt;	[_fb setSelectedIndex:[[FacebookAgent sharedAgent] isLoggedIn]];&lt;br&gt;}&lt;br&gt;&lt;br&gt;- (void)connectFB:(id)sender {&lt;br&gt;	if ([[FacebookAgent sharedAgent] isLoggedIn])&lt;br&gt;		[[FacebookAgent sharedAgent] logout];&lt;br&gt;	else&lt;br&gt;		[[FacebookAgent sharedAgent] login];&lt;br&gt;}	&lt;br&gt;&lt;br&gt;- (void)getBack:(id)sender {&lt;br&gt;	[[CCDirector sharedDirector] popScene];	&lt;br&gt;}&lt;br&gt;&lt;br&gt;- (void) facebookAgent:(FacebookAgent*)agent statusChanged:(BOOL) success{}&lt;br&gt;- (void) facebookAgent:(FacebookAgent*)agent didLoadInfo:(NSDictionary*) info{}&lt;br&gt;- (void) facebookAgent:(FacebookAgent*)agent didLoadFriendList:(NSArray*) data onlyAppUsers:(BOOL)yesOrNo{}&lt;br&gt;- (void) facebookAgent:(FacebookAgent*)agent didLoadPermissions:(NSArray*) data{}&lt;br&gt;- (void) facebookAgent:(FacebookAgent*)agent didLoadFQL:(NSArray*) data{}&lt;br&gt;- (void) facebookAgent:(FacebookAgent*)agent permissionGranted:(FacebookAgentPermission)permission{}&lt;br&gt;- (void) facebookAgent:(FacebookAgent*)agent photoUploaded:(NSString*) pid{}&lt;br&gt;- (void) facebookAgent:(FacebookAgent*)agent requestFaild:(NSString*) message{}&lt;br&gt;- (void) facebookAgent:(FacebookAgent*)agent loginStatus:(BOOL) loggedIn{}&lt;br&gt;- (void) facebookAgent:(FacebookAgent*)agent dialog:(FBDialog*)dialog didFailWithError:(NSError*)error{}&lt;br&gt;&lt;br&gt;@end`&lt;br&gt;This code works fine. But this is not what I want. I want my game to publish the score via publishFeedWithName method on when then user gives the app permission. So I call the publish method in alertView method. When the user click Why Not button, it publish. And it won&#039;t when the user click No in UIAlertView. But ... it doesn&#039;t work.&lt;br&gt;&lt;br&gt;My question is how should I do it? It works very fine in the init method. But when I move the code into the alertView method. I doesn&#039;t. Thanks for the reply. And sorry for my bad English.</description>
		<content:encoded><![CDATA[<p>Hi, I&#39;m pretty frustated in trying to implement this into my project. I&#39;ve tried many ways but with no success. Please help me with this. Thanks a lot. Here&#39;s my code.<br />`@implementation ScoresLayer</p>
<p>- (id)init {<br />	if ((self = [super init])) {<br />		CGSize winSize = [[CCDirector sharedDirector] winSize];<br />		CCSprite *bg = [CCSprite spriteWithFile:@"menubg1.png"];		</p>
<p>		[bg setPosition:ccp(winSize.width / 2, winSize.height / 2)];<br />		[self addChild:bg z:0];</p>
<p>/*		[CCMenuItemFont setFontName: @"American Typewriter"];<br />		[CCMenuItemFont setFontSize:(winSize.height == 1024 ? 36 : 18)];<br />		CCMenuItemFont *title1 = [CCMenuItemFont itemFromString: @"Sound"];<br />		[title1 setIsEnabled:NO];<br />		CCMenuItemFont *title2 = [CCMenuItemFont itemFromString: @"Music"];<br />		[title2 setIsEnabled:NO];<br />		CCMenuItemFont *title3 = [CCMenuItemFont itemFromString: @"Graphic Quality"];<br />		[title3 setIsEnabled:NO];</p>
<p>		[CCMenuItemFont setFontName: @"Marker Felt"];<br />		[CCMenuItemFont setFontSize:(winSize.height == 1024 ? 68 : 34)];<br />		CCMenuItemToggle *item1 = [CCMenuItemToggle itemWithTarget:self selector:@selector(toggleSound:) items:<br />								   [CCMenuItemFont itemFromString: @"On"],<br />								   [CCMenuItemFont itemFromString: @"Off"],<br />								   nil];<br />		CCMenuItemToggle *item2 = [CCMenuItemToggle itemWithTarget:self selector:@selector(toggleMusic:) items:<br />								   [CCMenuItemFont itemFromString: @"On"],<br />								   [CCMenuItemFont itemFromString: @"Off"],<br />								   nil];<br />		CCMenuItemToggle *item3 = [CCMenuItemToggle itemWithTarget:self selector:@selector(toggleGraphic:) items:<br />								   [CCMenuItemFont itemFromString: @"High"],<br />								   [CCMenuItemFont itemFromString: @"Low"],<br />								   nil];</p>
<p>		if ([[VariableStore sharedVariableStore] sound])<br />			[item1 setSelectedIndex:0];<br />		else<br />			[item1 setSelectedIndex:1];</p>
<p>		if ([[VariableStore sharedVariableStore] music])<br />			[item2 setSelectedIndex:0];<br />		else<br />			[item2 setSelectedIndex:1];		<br />		if ([[VariableStore sharedVariableStore] hiQ])<br />			[item3 setSelectedIndex:0];<br />		else<br />			[item3 setSelectedIndex:1];</p>
<p>		CCMenu *menu = [CCMenu menuWithItems:<br />						title1, title2,<br />						item1, item2,<br />						title3,<br />						item3, nil];<br />		[menu alignItemsInColumns:<br />		 [NSNumber numberWithUnsignedInt:2],<br />		 [NSNumber numberWithUnsignedInt:2],<br />		 [NSNumber numberWithUnsignedInt:1],<br />		 [NSNumber numberWithUnsignedInt:1],<br />		 nil<br />		 ];</p>
<p>		[self addChild:menu z:1];*/</p>
<p>		CCMenuItemImage *back = [CCMenuItemImage itemFromNormalImage:@"b1.png" selectedImage:@"b2.png" target:self selector:@selector(getBack:)];<br />		if (winSize.height == 1024)<br />			[back setScale:2];<br />		_fb = [CCMenuItemToggle itemWithTarget:self selector:@selector(connectFB:) items:<br />			   [CCMenuItemImage itemFromNormalImage:@"Connect_iphone.png" selectedImage:@"Connect_iphone.png"],<br />			   [CCMenuItemImage itemFromNormalImage:@"Logout_iphone.png" selectedImage:@"Logout_iphone.png"],<br />			   nil];</p>
<p>		CCMenu *menu1 = [CCMenu menuWithItems:back, _fb, nil];<br />		[menu1 setPosition:CGPointZero];<br />		[back setPosition:ccp(winSize.width * 0.2, winSize.height * 0.1)];<br />		[_fb setPosition:ccp(winSize.width * 0.8, winSize.height * 0.1)];</p>
<p>		[self addChild:menu1 z:1];</p>
<p>		[self schedule:@selector(update:)];</p>
<p>		[[FacebookAgent sharedAgent] setDelegate:self];</p>
<p>/*		UIAlertView *myAlert = [[[UIAlertView alloc] initWithTitle:@&#8221;New Score&#8221;<br />														   message:@&#8221;You got new score. Would you like to publish it?&#8221;<br />														  delegate:self cancelButtonTitle:@&#8221;Why Not&#8221; otherButtonTitles:@&#8221;No&#8221;, nil] autorelease];<br />		[myAlert show];*/<br />		[[FacebookAgent sharedAgent] publishFeedWithName:@&#8221;Scored 0123456789&#8243; <br />											 captionText:@&#8221;Download BurningArmor now to beat his record&#8221;<br />												imageurl:@&#8221;http://img101.imageshack.us/img101/6311/balogo.png&#8221;<br />												 linkurl:@&#8221;http://www.apple.com&#8221;<br />									   userMessagePrompt:@&#8221;What&#39;s on your mind?&#8221;];<br />	}</p>
<p>	return self;<br />}</p>
<p>- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {<br />	if (!buttonIndex)<br />		[[FacebookAgent sharedAgent] publishFeedWithName:@&#8221;Scored 0123456789&#8243; <br />											 captionText:@&#8221;Download BurningArmor now to beat his record&#8221;<br />												imageurl:@&#8221;http://img101.imageshack.us/img101/6311/balogo.png&#8221;<br />												 linkurl:@&#8221;http://www.apple.com&#8221;<br />									   userMessagePrompt:@&#8221;What&#39;s on your mind?&#8221;];<br />}	</p>
<p>- (void)update:(ccTime)dt {<br />	[_fb setSelectedIndex:[[FacebookAgent sharedAgent] isLoggedIn]];<br />}</p>
<p>- (void)connectFB:(id)sender {<br />	if ([[FacebookAgent sharedAgent] isLoggedIn])<br />		[[FacebookAgent sharedAgent] logout];<br />	else<br />		[[FacebookAgent sharedAgent] login];<br />}	</p>
<p>- (void)getBack:(id)sender {<br />	[[CCDirector sharedDirector] popScene];	<br />}</p>
<p>- (void) facebookAgent:(FacebookAgent*)agent statusChanged:(BOOL) success{}<br />- (void) facebookAgent:(FacebookAgent*)agent didLoadInfo:(NSDictionary*) info{}<br />- (void) facebookAgent:(FacebookAgent*)agent didLoadFriendList:(NSArray*) data onlyAppUsers:(BOOL)yesOrNo{}<br />- (void) facebookAgent:(FacebookAgent*)agent didLoadPermissions:(NSArray*) data{}<br />- (void) facebookAgent:(FacebookAgent*)agent didLoadFQL:(NSArray*) data{}<br />- (void) facebookAgent:(FacebookAgent*)agent permissionGranted:(FacebookAgentPermission)permission{}<br />- (void) facebookAgent:(FacebookAgent*)agent photoUploaded:(NSString*) pid{}<br />- (void) facebookAgent:(FacebookAgent*)agent requestFaild:(NSString*) message{}<br />- (void) facebookAgent:(FacebookAgent*)agent loginStatus:(BOOL) loggedIn{}<br />- (void) facebookAgent:(FacebookAgent*)agent dialog:(FBDialog*)dialog didFailWithError:(NSError*)error{}</p>
<p>@end`<br />This code works fine. But this is not what I want. I want my game to publish the score via publishFeedWithName method on when then user gives the app permission. So I call the publish method in alertView method. When the user click Why Not button, it publish. And it won&#39;t when the user click No in UIAlertView. But &#8230; it doesn&#39;t work.</p>
<p>My question is how should I do it? It works very fine in the init method. But when I move the code into the alertView method. I doesn&#39;t. Thanks for the reply. And sorry for my bad English.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JWeldin</title>
		<link>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/comment-page-1/#comment-177</link>
		<dc:creator>JWeldin</dc:creator>
		<pubDate>Wed, 16 Jun 2010 07:44:44 +0000</pubDate>
		<guid isPermaLink="false">http://amanpages.com/?p=201#comment-177</guid>
		<description>Do you have an example of this?  I am trying to allow the user to choose the target for publishing to their wall, but I can&#039;t get the friend list to load before publishing.  Can you share some sample code?</description>
		<content:encoded><![CDATA[<p>Do you have an example of this?  I am trying to allow the user to choose the target for publishing to their wall, but I can&#39;t get the friend list to load before publishing.  Can you share some sample code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coneybeare</title>
		<link>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/comment-page-1/#comment-151</link>
		<dc:creator>coneybeare</dc:creator>
		<pubDate>Thu, 13 May 2010 20:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://amanpages.com/?p=201#comment-151</guid>
		<description>I was able to patch up the issues I was having with the info for the story, I had some escaped double quotes and it turns out they need to be double escaped.  The compilation  warnings still persist.  Right now I am looking for a way to get a callback on a successfully published story, something like @&quot;The post was published successfully&quot;. Any ideas?</description>
		<content:encoded><![CDATA[<p>I was able to patch up the issues I was having with the info for the story, I had some escaped double quotes and it turns out they need to be double escaped.  The compilation  warnings still persist.  Right now I am looking for a way to get a callback on a successfully published story, something like @&#8221;The post was published successfully&#8221;. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coneybeare</title>
		<link>http://amanpages.com/wordpress/sample-iphone-example-project/iphone-facebook-connect-how-do-i-publish-feed-with-facebookagent/comment-page-1/#comment-150</link>
		<dc:creator>coneybeare</dc:creator>
		<pubDate>Thu, 13 May 2010 09:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://amanpages.com/?p=201#comment-150</guid>
		<description>have you tried this on 4.0?  I am having compilation warnings and missing info in the feeds</description>
		<content:encoded><![CDATA[<p>have you tried this on 4.0?  I am having compilation warnings and missing info in the feeds</p>
]]></content:encoded>
	</item>
</channel>
</rss>

