(这是RubyMotion,但应与Objective-C完全相同。)
我在Graph API Explorer(https://developers.facebook.com/tools/explorer)上运行查询,它返回正确的结果(注意:随机UID,不是真实的):
SELECT uid FROM user WHERE uid = 100001554214421
返回:
{
"data": [
{
"uid": 100001554214421
}
]
}
但是,在使用Facebook SDK的iOS中,我运行相同的查询:
def query_facebook
params = { query: "SELECT uid FROM user WHERE uid = 100001554214421" }
@facebook.requestWithMethodName("fql.query",
andParams: params,
andHttpMethod: "POST",
andDelegate: self)
end
def request(request, didLoad:response)
$stderr.puts response
end
输出:
{"uid"=>100001535492096} # << should be 100001554214421
请注意,uid与我查询的不同。
问题: 为什么像这样的简单查询会在Facebook iOS SDK中返回错误的结果,而不会在Graph API Explorer中返回错误的结果?
答案 0 :(得分:0)
https://developers.facebook.com/bugs/507492582594198?browse=search_509ec2d1179c70b65454284
不幸的是,他们为此分配了一个低优先级。希望他们能尽快解决。