发布在Facebook的朋友配置文件没有打开对话框?

时间:2012-09-19 08:23:19

标签: iphone ios facebook

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 !!

感谢每一个人!!

1 个答案:

答案 0 :(得分:1)

假设代码中的params变量是带有“消息”键和值的字典,您还需要确保向用户询问publish_stream扩展权限。