Recent changes inside Facebook have broken the existing OpenFlights Facebook application‘s ability to post recently added and/or today’s flights to your Facebook Wall. To fix your copy, please go to this URL:
http://apps.facebook.com/openflights/
Right below “Step 1″, click on the link entitled “Grant permission to publish posts”, click on “Allow publishing” in the dialog that pops up, and then click one last time on “Update preferences”. That’s it — and as a complimentary bonus, the flight map posted to your profile should now always be up to date.
Geek version: Effective today, Facebook has discontinued the old “template bundle” functionality, which used the offline_publish permission. We’ve replaced it with stream publishing, but to work this requires the separate stream_publish permission instead. In addition, we’re now calling fbml.refreshImgSrc after all profile changes to make sure the dynamically generated map is refreshed as well.
As always, the Facebook application code is available in the OpenFlights SVN, take a look if interested. index.php is the core application, while updater.php is a standalone command line app that handles Wal updates.
Unbundled and streamlined,
-jani
January 10, 2010 at 11:29 pm
Hi,
The flight posting works fine, but the URI showed in the “View map” link is flawed. It links to “http://openflights/user/Disinto?ref=nf” for example.
LikeLike
January 12, 2010 at 6:26 pm
Thanks for the heads-up! This should be fixed now, but the fix will only apply to future updates, not ones that are already posted.
LikeLike
January 18, 2010 at 6:30 am
Yes it works fine now, thanks for the fix!
And BTW, would it be possible to implement a timezone feature for the notifications? I’m currently in the GMT+8 timezone and my last flight’s notification has been sent really late (like 8h after the actual flight).
Thanks 🙂
LikeLike
January 18, 2010 at 6:58 am
That’s been on the unofficial To Do list for a while, but it’s now added to the official one:
https://sourceforge.net/tracker/?func=detail&aid=2934328&group_id=235620&atid=1097180
It’s a little harder to implement than you’d think though, since while it’s very easy to check the day a flight leaves, working out the correct timezone requires a lookup through the airport database as well.
LikeLike
January 19, 2010 at 9:14 am
Thanks for that! Looking forward to seeing this feature soon!
LikeLike
January 24, 2010 at 10:38 pm
i’m having an issue with the facebook app.
i originally installed the FB app using my wife’s openflight info (it asked for OF username/password) and that worked great- the FB app displayed her OF stats exactly what I expected.
however, i cannot get the app to update with a different OF account (i.e. mine)- it keeps reverting back to hers no matter what i do. I’ve tried removing the app from facebook, logging in/out of FB and OF, clearing cookies, etc. No matter what, whenever I go add the facebook app (logged into OF as me), my wife’s OF map & stats are loaded into FB. I can’t get back to the option to enter my OF username/password to authenticate and refresh the FB app.
hope this makes sense. if not, i’m happy to elaborate further. if so, help!
thanks!!
LikeLike
January 24, 2010 at 10:41 pm
Try this:
http://apps.facebook.com/openflights/?reset=true
LikeLike
Pingback: Yet another Facebook application issue – OpenFlights
June 26, 2010 at 6:45 am
Fatal error: Uncaught exception ‘FacebookRestClientException’ with message ‘Session key invalid or no longer valid’ in /var/www/openflights/facebook/php/facebookapi_php5_restlib.php:3112 Stack trace: #0 /var/www/openflights/facebook/php/facebookapi_php5_restlib.php(1805): FacebookRestClient->call_method(‘facebook.users….’, Array) #1 /var/www/openflights/facebook/index.php(98): FacebookRestClient->users_hasAppPermission(‘offline_access’) #2 {main} thrown in /var/www/openflights/facebook/php/facebookapi_php5_restlib.php on line 3112
je n’arrive pas à autoriser l’app : voilà le message d’erreur ? que puis je faire ?
merci
LikeLike