doujiao1949 2012-05-15 16:20
浏览 48

如何通过fql获取朋友事件(或基本上不是由我创建的任何事件)的正确UTC开始日期

I'm trying to get the correct start date for events that were not created by me. I understood how facebook saves events starting and ending date ( Can someone expalin me how facebook stores the start and end time of events?) and i understood that i need to know my timezone to get the correct starting date in UTC, but what about other events?How do i get the timezone of the user who created the event using fql or the graph api?Is there a way? I'm using the php SDK.
This is the code i use to get events

            $fql = "SELECT 
                        eid,
                        name,
                        description,
                        start_time,
                        end_time,
                        venue,
                        location,
                        update_time
                    FROM
                        event
                    WHERE 
                        eid IN (SELECT eid FROM event_member WHERE uid = $id)" ;
            $events = $facebook->api( array(
                'method' => 'fql.query',
                'query' => $fql,
            ) );
  • 写回答

1条回答 默认 最新

  • dqk42179 2012-05-15 18:16
    关注

    Timezone seems to be restricted to the current user only.

    However, you should be able to get the owner->id of the event. If the owner is a user (person) then you can get the location->id which may yield a lat\long from the place or the location->name. In either case you still need to do a look up on the location to match it to a timezone.

    Also, the location information might not be available unless your access token has friends_location permissions.

    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题