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

感谢每一个人!

4

1 回答 1

1

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

于 2012-09-19T08:58:33.910 回答