直接发布到应用程序的墙上

时间:2012-04-30 20:19:28

标签: iphone ios facebook

我正试图直接从我的iOS应用程序发布到Facebook应用程序页面,但没有运气。

我读过这个 iOS post to the Facebook app wall 还有这个 Trying to post directly to an application's wall

但没有运气。

请帮助

2 个答案:

答案 0 :(得分:1)

-(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]; 
}

数字####适用于您的网页。

答案 1 :(得分:1)

-(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]; 
}