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

Retrieving a Specific Cookie

Problem

I need to retrieve a specific cookie using FQL.

Solution

SELECT name, value, path from cookies WHERE name="$name" AND uid = $user;

Discussion

Remember that all FQL queries are scoped to your application, so if you specify the name of a cookie from a different app, you’ll get back null.

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