Platform Update: OAuth 2.0 Spec Migration Required by November 5th, PHP SDK, Video

The last Platform Update to the Facebook Developer Blog announced a mandatory migration to a new spec of OAuth 2.0. It only requires a small code change, but all developers must implement it by November 5th. Facebook also noted that a slightly updated version of the PHP SDK will be released tomorrow, August 9th. This week, Facebook also provided a walk through of how developers can allow users to upload videos to their profiles through an application.

Facebook is currently migrating to OAuth 2.0, a secure authorization protocol that allows applications to keep User IDs and access tokens private when transmitted. All developers must migrate their apps to OAuth 2.0 by October 1st.

Facebook jointly publishes the OAuth spec with Yahoo! and Microsoft. A change to this spec necessitates a changes to Facebook’s auth APIs will also change, which in turn requires a minor change to API calls.

As of November 5th, 2011, auth API calls that previously used included “code_and_token” will instead need to use “code%20token“. All other elements of auth API calls remain identical.

In other OAuth news, tomorrow Facebook will release v3.1 of its PHP SDK. The OAuth 2.0-ready versions of the PHP and JavaScript SDKs were initially slated for a July 1st launch. However the PHP SDK was finished early and released in late May, while technical difficulties delayed the JS SDK until late July.

During the delay of the JS SDK, there were apparently some improvements made upon what was released in the v3 of the PHP SDK. The new v3.1 PHP SDK update to be released tomorrow will “leverage the recent changes to the JavaScript SDK”. Developers can download the update on GitHub.

Facebook has been publishing a series of how-to guides that explain how developers can add advanced functionality to and optimize performance of their apps and websites. Previously, Facebook published a how-to for optimizing social plugin performance. The guides consolidate clear instructions so developers don’t have to dig through forums or use trial and error to achieve the functionality they desire.

The How-To: Use the Graph API to Upload a Video (iOS) guide explains that by allowing users to upload video through an app, that app can gain new users since a link to it is included alongside video content. The guide covers how to:

  1. Start a new project
  2. Add a sample video to your project
  3. Set up the Facebook class
  4. Set up permissions and the authentication handler
  5. Setup up the video upload Graph API call
  6. Handle the results
  7. Add single sign-on (SSO) support
  8. Test the app
  9. Set video privacy