直接发布到应用程序的墙上
我试图直接从我的iOS应用程序发布到Facebook应用程序页面,但没有运气。
我已经阅读这个iOS的post到Facebook的应用程序墙 ,这试图直接张贴到应用程序的墙上
但没有运气。
请帮助
-(void)postToFacebookAppPage { NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"##########...", @"app_id", @"##########...",@"to", //@"http://www.facebook.com/pages/AppPageURL", @"link", //@"icon.png", @"picture", //@"App Page Name", @"name", //@"Post to App Facebook Page", @"caption", @"Do Stuff Facebook page.", @"description", nil]; AppDelegate *sharedAppDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; [sharedAppDelegate.facebook dialog:@"feed" andParams:params andDelegate:self]; }
数字####是为您的网页。
-(void)postToFacebookAppPage { NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"##########...", @"app_id", //@"http://www.facebook.com/pages/AppPageURL", @"link", //@"icon.png", @"picture", //@"App Page Name", @"name", //@"Post to App Facebook Page", @"caption", @"Do Stuff Facebook page.", @"description", nil]; AppDelegate *sharedAppDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; [sharedAppDelegate.facebook dialog:@"pageid/feed" andParams:params andDelegate:self]; }