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.

Get Facebook Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.