Facebook 个人资料有时会丢失时区属性
我运行一个使用 facebook connect 的网络应用程序。最近,少数用户的个人资料信息不再包含时区属性。
通常,转到页面 https://graph.facebook.com/me?access_token=0123456789 (正确的访问令牌链接可以在 http://developers.facebook.com/docs 上找到/reference/api/) 看起来像下面这样。
{
"id": "1234567890",
"name": "John Doe",
"first_name": "John",
"last_name": "Doe",
"link": "http://www.facebook.com/profile.php?id=1234567890",
"birthday": "05/23/1984",
"work": [
{
...
}
],
"gender": "male",
"timezone": -5,
"locale": "us_US",
"updated_time": "2011-04-15T20:41:33+0000"
}
任何想法为什么 "timezone": -5 部分可能会丢失?这会针对现有用户进行更改,而不会更改权限。
非常感谢!
I run a web app that makes use of facebook connect. Recently, the profile information for few users does not contain the timezone attribute anymore.
Normally, going to the page https://graph.facebook.com/me?access_token=0123456789 (correct access token link can be found on http://developers.facebook.com/docs/reference/api/) looks something like the following.
{
"id": "1234567890",
"name": "John Doe",
"first_name": "John",
"last_name": "Doe",
"link": "http://www.facebook.com/profile.php?id=1234567890",
"birthday": "05/23/1984",
"work": [
{
...
}
],
"gender": "male",
"timezone": -5,
"locale": "us_US",
"updated_time": "2011-04-15T20:41:33+0000"
}
Any ideas why the "timezone": -5 part could go missing? This changes for existing users, without a change in permissions.
Thank you very much!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很奇怪:如果用户没有指定位置,在您访问 API 时或前后更改了他们的位置,或者从不同时区的计算机登录,那么他们很可能没有时区信息。
Quite odd: if the user doesn't have a location specified, changes their location at or around the time you are hitting the API or logs in from computers with varying timezones it is quite possible they won't have timezone info.