English 中文(简体)
张贴有新闻报道的面貌并不奏效
原标题:posting on facebook newsfeed is not working

i 正在使用笔记本对讲人进行黑板的取样,但当我试图在新闻上公布时,它正在按我的时间表张贴,但在我的新闻中并未显示。 i 从http://www.icodeblog.com/201103/28/facebook-sdk-posting-to-user-news-feed/"rel=“nofollow”上尝试了另一个例子。 链接也张贴在我的时间表上,但不是在我的新闻中。 使用黑板样本出版守则

 - (void)apiDialogFeedUser 
 {
     currentAPICall = kDialogFeedUser;
     SBJSON *jsonWriter = [[SBJSON new] autorelease];

     // The action links to be shown with the post in the feed
     NSArray* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:
                                                       @"Get Started",@"name",@"http://m.facebook.com/apps/hackbookios/",@"link", nil], nil];
     NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
     // Dialog parameters
     NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                               @"I m using the Hackbook for iOS app", @"name",
                               @"Hackbook for iOS.", @"caption",
                               @"Check out Hackbook for iOS to learn how you can make your iOS apps social using Facebook Platform.", @"description",
                               @"http://m.facebook.com/apps/hackbookios/", @"link",
                               @"http://www.facebookmobileweb.com/hackbook/img/facebook_icon_large.png", @"picture",
                               actionLinksStr, @"actions",
                               nil];

     HackbookAppDelegate *delegate = (HackbookAppDelegate *)[[UIApplication sharedApplication] delegate];
     [[delegate facebook] dialog:@"feed" andParams:params andDelegate:self];

}

anybody else has face this type of issue any suggestions will be great help

问题回答

Try using the OFFICIAl iOS dev tutorial made by Facebook themselves:

http://developers.facebook.com/docs/mobile/ios/build/"rel=“nofollow”>iOS Tutorial





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签