Developers: Facebook Improves Platform Dialogs

Facebook just improved its Platform Dialogs, the code that you put in your programs to give users the ability to see what's going on, add messages and adjust privacy settings.

Hey, developers: Facebook just improved its Platform Dialogs, three of them in particular.

Dialogs are the code that you put in your programs to give users the ability to see what’s going on, add messages and adjust privacy settings; you as a developer don’t need to write any additional requests for permission, and the whole thing is seamless.

The three types of Dialogs that got souped up are:

  • A new Feed Dialog publishes stories to the news feed.
  • A new Friend Dialog adds a friend.
  • A new OAuth Dialog authorizes users.

All three can be invoked with either an HTTP request or using existing software developer kits for JavaScript, iOS and Android.

An example of a Platform Dialog using JavaScript SDK is below — scroll all the way down to the bottom to see what the code fires up:

<html>
  <body>
    <script src="http://connect.facebook.net/en_US/all.js"></script>
    <div id="fb-root"></div>
    <script>
      // assume we are already logged in
      FB.init({appId: '123050457758183', xfbml: true, cookie: true});

      FB.ui({
          method: 'feed',
          name: 'Facebook Dialogs',
          link: 'http://developers.facebook.com/docs/reference/dialogs/',
          picture: 'http://fbrell.com/f8.jpg'
          });
     </script>
  </body>
</html>

Here’s how to show content from a dialog web address within an iframe:

http://www.facebook.com/dialog/feed?
    app_id=123050457758183&
    name=Facebook%20Dialogs&
    link=http://developers.facebook.com/docs/reference/dialogs/&
    picture=http://fbrell.com/f8.jpg&
    redirect_uri=http://www.example.com/response

The code above fires up the following for your end user:

In the future Facebook will make available Dialogs for sending application requests and inbox messages.

What do you think of this newest release? How will it improve your development?