iOS中的FQL和Graph API [英] FQL and Graph API in iOS

查看:93
本文介绍了iOS中的FQL和Graph API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在iOS中使用图形API的FQL吗?
我正在尝试从不同的组中获取用户的帖子
我已经阅读了FQL文档
,但是我需要看一个例子来帮助我继续进行?
请帮助

解决方案

这是一个例子:

  NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@SELECT uid,name FROM user WHERE uid = 4,@query,
nil];
[facebook requestWithMethodName:@fql.query
andParams:params
andHttpMethod:@POST
andDelegate:self];


have anyone used FQL of graph API in iOS? I am trying to get users posts from different groups I have read FQL documentation but I need to see an example to help me proceed? please help

解决方案

Here is an example:

    NSMutableDictionary * params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                                @"SELECT uid,name FROM user WHERE uid=4", @"query",
                                nil];
[facebook   requestWithMethodName: @"fql.query"
                         andParams: params
                     andHttpMethod: @"POST"
                       andDelegate: self];

这篇关于iOS中的FQL和Graph API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆