O'Reilly logo

Facebook Cookbook by Jay Goldman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an Auth Token (Desktop Only)

Problem

I need to create an auth token for my desktop Facebook app.

Solution

Use the Auth.createToken() method, which requires no parameters beyond the standard api_key, sig, and version, and returns a key that can be used to create a session (see Creating a Session Key for more info).

Discussion

This isn’t required by web apps, which can just go directly to creating a session key.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required