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.
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:
- Start a new project
- Add a sample video to your project
- Set up the Facebook class
- Set up permissions and the authentication handler
- Setup up the video upload Graph API call
- Handle the results
- Add single sign-on (SSO) support
- Test the app
- Set video privacy