I am using this code to post any text on the facebook page with the page id menetioned in the code. it gives success message but when i goto the page there is nothing.
Pls help…
Thanks in advance
-(void)facebookPost;
{
NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:2];
FbGraphFile *graph_file = [[FbGraphFile alloc]init]; //initWithImage:[UIImage imageNamed:@”gg”]];
//finally, set the FbGraphFileobject onto our variables dictionary….
[variables setObject:graph_file forKey:@”file”];
[variables setObject:@"hihihi" forKey:@"message"];
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”,FACEBOOK_APP_KEY] withPostVars:variables];
}
Error was in this line…
wrong:
Right way is this:
And i have solved the problem.