Starting with the 'Events Timezone' migration, Facebook changed the timesptamp time formatting to UTC.
I am developing a native android app and running fql query for fetching user's info.
Problem is I am still getting time as timestamp instead of UTC, though when trying to run a simple fql via GRAPH-API tool I am getting time in UTC format.
Events Timezone Migration Note on facebook:
https://developers.facebook.com/docs/reference/fql/event/
Does anyone experiencing the same thing?
on facebook app settings:
apps->edit app->advance-> and enable Events Timezone
(as CBroe suggested)
Related
Cannot find this in Graph API documentation or in any FB settings, I'm in UTC+1 currently, looks like responses I get are in UTC.
Made a post this morning at 11:48 am EST. Display on FB page says 11:48 am.
Graph API says 16:48 so I'm thinking that the created_time is going to be in UTC.
I saw a post or two that said they use UTC-8 which would be pacific standard time, but according to what I'm looking at on FB and on the Graph API, I'm seeing UTC.
hope this helps!
I am developing a Facebook chatbot and when I query for user profile data I get user timezone as +2
but what formate does Facebook return if the timezone is 1:15 is it +1:15 or +1.25 https://www.timeanddate.com/worldclock/difference.html?p1=1440
I did not find a way to change my timezone or test users timezone to test it.
also the list if timezone ids is not helpful https://developers.facebook.com/docs/marketing-api/reference/ad-account/timezone-ids/v2.9
User profile api https://developers.facebook.com/docs/messenger-platform/user-profile
How to read Facebook comments based on updated time through API?
I tried "since" and "until" but both are reading the data based on created time.
for example let us assume a user created a post on his timeline two days back and someone commented on the post today. If I try to read the comment done on today using the following query /me/feed?since=2014-09-08 it doesn't return anything because the created date is two days back.
There's unfortunately no way to query the Graph API concerning the upate timestamp IMHO. since and until reference the created_time, as you said.
If you have a Graph API v2.0 app, you could theoretically use FQL to query by comment creation timestamp. Have a look at the comment table at https://developers.facebook.com/docs/reference/fql/comment/ and the field time. I guess you'd have to in conjunction with the stream table to get the post_is list.
To be able to use FQL you'll need an app which is an Graph API v2.0 app. And FQL will only work until April 30th 2016.
I live at GMT. I've created an event on facebook at 00:00. When I query the graph api without access token, it returns 00:00. When I use an access token, it return 07:00.
There's a 2nd event I didn't create. It starts at 00:00 on the facebook page. When I query it without an access token, it returns 00:00. When I use an access token, it returns 08:00
My friend lives at GMT+2. To him, the second event appears the same as to me.
How are facebook event dates calculated? Given a GMT timestamp, how can I determine if an event is ongoing?
Welcome to the weird world of the Facebook Graph API.
What you are most likely experiencing are permission and localisation issues.To remove the privacy bug, goto graph.facebook.com , click your feed api link on the Graph Page. This will generate an access token that gives you the exact same access you would experience if you'd logged into Facebook directly.
Your privacy settings may differ for applications, or hte people who have generated the events may block applications. In any case this helps remove one potential cause of the problem.
(As opposed to logging in as an application).
With regards to the time offset, this is down to the API. You'll need to handle the offset yourself.
I have created a facebook iframe app using Flash on the client and .net on the server. I am using fluorineFX to communicate between the two.
I need to get the exact facebook server time from my server. This is for authenticating the user on my server so I don't want to get the time from the client and then pass it to the server. This is the only interaction I need with Facebook from my server, all other interaction is handled by the client using the old rest API.
What is the best way to do this? I have read you can use FQL but seeing as its just the time I am looking for is there a way which does not involve getting an authToken on the server?
Thanks!
Tim
You can call now() in a Facebook FQL query to get the current Facebook server time in a unix timestamp and then convert it from there however you need.
For example, here is a sample FQL query that would work without an auth token (fql statements require a where clause so I just grabbed a random fql table with a random where statement):
SELECT now() FROM link_stat WHERE url = '1.2'
The url for that query would be:
https://api.facebook.com/method/fql.query?query=SELECT+now%28%29+FROM+link_stat+WHERE+url+%3D+%271.2%27&format=json
Facebook provides a FQL testing tool to help.