How to post on Facebook wall without opening Dialog?

偶尔善良 提交于 2019-12-04 19:02:56
dks1725

hi i think you can do this and can solve your problem

NSString *str=@"Your String to post";

NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                   str,@"message",
                                   @"Test it!",@"name",                                   
                                   nil];
Facebook *fb = [[Facebook alloc] init];
    [fb requestWithGraphPath:@"me/feed"   // or use page ID instead of 'me'
                          andParams:params
                      andHttpMethod:@"POST"
                        andDelegate:self];
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!