OpenFlights

News from OpenFlights, the site for flight logging, mapping, stats and sharing

Facebook application changed, your action required to keep posting flights

9 Comments

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

9 thoughts on “Facebook application changed, your action required to keep posting flights

  1. 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.

    Like

  2. 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.

    Like

  3. 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 🙂

    Like

  4. 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.

    Like

  5. Thanks for that! Looking forward to seeing this feature soon!

    Like

  6. 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!!

    Like

  7. Pingback: Yet another Facebook application issue – OpenFlights

  8. 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

    Like

Leave a comment