【发布时间】:2012-04-30 20:19:27
【问题描述】:
我正在尝试从我的 iOS 应用程序直接发布到 Facebook 应用程序页面,但没有成功。
我读过这个 iOS post to the Facebook app wall 还有这个 Trying to post directly to an application's wall
但没有运气。
请帮忙
【问题讨论】:
我正在尝试从我的 iOS 应用程序直接发布到 Facebook 应用程序页面,但没有成功。
我读过这个 iOS post to the Facebook app wall 还有这个 Trying to post directly to an application's wall
但没有运气。
请帮忙
【问题讨论】:
-(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];
}
【讨论】: