Ios5 在facebook页面上发布

Ios5 在facebook页面上发布,ios5,xcode4.3,Ios5,Xcode4.3,我使用此代码在facebook页面上发布任何带有代码中指定的页面id菜单的文本。它给出了成功的信息,但当我进入页面时,什么都没有。 请帮忙 提前谢谢 -(void)facebookPost; { NSMutableDictionary*变量=[NSMutableDictionary dictionaryWithCapacity:2]; FbGraphFile*graph_文件=[[FbGraphFile alloc]init];//initWithImage:[UIImage ImageNam

我使用此代码在facebook页面上发布任何带有代码中指定的页面id菜单的文本。它给出了成功的信息,但当我进入页面时,什么都没有。 请帮忙

提前谢谢

-(void)facebookPost;
{ NSMutableDictionary*变量=[NSMutableDictionary dictionaryWithCapacity:2]; FbGraphFile*graph_文件=[[FbGraphFile alloc]init];//initWithImage:[UIImage ImageName:@“gg”]; //最后,将FbGraphFileobject设置到变量字典中。。。。 [variables setObject:graph_file forKey:@“file”]

FbGraphResponse*fb_graph_response=[fbGraph doGraphPost:[NSString stringWithFormat:@“%@/167884363345570/feed”,FACEBOOK_应用程序键]withPostVars:variables]

}

这行有错误

错误:

FbGraphResponse *fb_graph_response = [fbGraph doGraphPost:[NSString stringWithFormat:@"%@/167884363345570/feed",FACEBOOK_APP_KEY] withPostVars:variables];
FbGraphResponse *fb_graph_response = [fbGraph doGraphPost:[NSString stringWithFormat:@"167884363345570/feed"] withPostVars:variables];
正确的方法是:

FbGraphResponse *fb_graph_response = [fbGraph doGraphPost:[NSString stringWithFormat:@"%@/167884363345570/feed",FACEBOOK_APP_KEY] withPostVars:variables];
FbGraphResponse *fb_graph_response = [fbGraph doGraphPost:[NSString stringWithFormat:@"167884363345570/feed"] withPostVars:variables];
我已经解决了这个问题