Facebook SDK使用iOS SDK返回错误的UID

时间:2012-10-10 00:26:28

标签: objective-c facebook-graph-api facebook-ios-sdk rubymotion

(这是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中返回错误的结果?

1 个答案:

答案 0 :(得分:0)

Facebook已确认这是一个错误:

https://developers.facebook.com/bugs/507492582594198?browse=search_509ec2d1179c70b65454284

不幸的是,他们为此分配了一个低优先级。希望他们能尽快解决。