我试图通过以下代码通过Gem Koala Facebook API获取用户信息
@graph = Koala::Facebook::API.new(auth_hash.credentials.token)
profile = @graph.get_object("me")
user.update(
url: auth_hash.extra.raw_info.id,
email: auth_hash.extra.raw_info.email,
friends: @graph.get_connections("me", "friends"),
birthday: @graph.get_object("me", "birthday")
)
friends: @graph.get_connections("me", "friends") 工作得很好,我会得到一个朋友列表.
但是birthday: @graph.get_object("me", "birthday")会给我type: OAuthException, code: 2500, message: Unknown path components: /birthday [HTTP 400]
返回数组的东西likes,photos工作正常.
但是字符串如last_name,name,first_name会给我同样的错误.
我该怎么做才能解决这个问题?还有其他东西我可以进入而不仅仅是birthday