评论从Facebook的API与graphicsAPI与客观 – C
我正在试图用api来获得facebook贴子的评论。 现在我有以下的方法。
+(NSArray *)getCommentsWithParam:(NSString *)Param { NSString *request = [NSString stringWithFormat:@"https://graph.facebook.com/comments/?ids=%@",Param]; NSLog(@"request is %@",request); NSString *vfk = [NSString stringWithFormat:@"comments.data"]; return [[self executeGenkFetch:request] valueForKey:vfk]; }
executeGenkFetch
只是parsingjson,并给我一个NSDictionary
的结果。 但现在当我读到这样的结果。
-(void)getComments{ NSArray *comments = [GenkData getCommentsWithParam:_commentsUrl]; NSLog(@"Comments are %@", comments); }
我总是得到(null)。 这是json的样子。
{ "http://www.krcgenk.be//nl/nieuws/show/krc-genk-speelt-1-1-gelijk-op-vfb-stuttgart/1329": { "comments": { "data": [ { "id": "412008348889230_2723627", "from": { "name": "Put Patrick", "id": "1090951059" }, "message": "Proficiat mannen", "can_remove": false, "created_time": "2013-02-15T00:10:12+0000", "like_count": 4, "user_likes": false }, { "id": "412008348889230_2723878", "from": { "name": "Benny Froyen", "id": "1095529244" }, "message": "Knap resultaat voor Genk. Alles blijft open voor de terugwedstrijd in Genk. Leuk!", "can_remove": false, "created_time": "2013-02-15T02:25:51+0000", "like_count": 1, "user_likes": false } ], "paging": { "next": "https://graph.facebook.com/412008348889230/comments?limit=25&offset=25&__after_id=412008348889230_2725492" } } } }
- Facebook SDK iOS:添加post以提供图片
- iOS – Facebook Open Graph API – 获取字幕显示在用户生成的图像旁边
- 通过PHP SDKvalidationFacebook API访问令牌和用户ID?
- 在批准之前testingFacebook集成
- 使用适用于iOS的SDK将video发布到Facebook时出错
- 邀请朋友使用Facebook Graph API进行应用
- Facebook iOS SDK 4.0.1“您必须将此应用升级到Graph API v2.x”
- ios非对话Facebook分享失败,没有错误,没有反馈
- youtube,而不是Facebook上的图片feed通过ios SDK