我正试图直接从我的iOS应用程序发布到Facebook应用程序页面,但没有运气。
我读过这个 iOS post to the Facebook app wall 还有这个 Trying to post directly to an application's wall但没有运气。
请帮助
答案 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];
}