How might I convert a Facebook Graph API Date to a UNIX timestamp?
Facebook recently added a feature where date/times will be returned in Unix timestamp format, simply add the date_format=U
query parameter to end of your Graph call. For example:
https://graph.facebook.com/me/events?date_format=U&access_token=.....
This will return time/dates in Unix timestamp format (such as 1309572000).
Note: As of now only the updated_time in timestamp format but not the start_time
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With