NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
friend, @"to",
@"100xxxx",@"from",
@"I'm also using thex xx for iOS app", @"message",
nil];
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
[[delegate m_Facebook] requestWithGraphPath:@"/xxx6842/feed" // or use page ID instead of 'me'
andParams:params
andHttpMethod:@"POST"
andDelegate:self];
我正在尝试这个但收到错误消息!!
我正在使用hackbook api !!
感谢每一个人!!
答案 0 :(得分:1)
假设代码中的params
变量是带有“消息”键和值的字典,您还需要确保向用户询问publish_stream扩展权限。