views:

107

answers:

2

A session token is given to the user when he starts running a facebook application, as long as this token is not stolen, other people cannot impersonate him. To increase security, a new token is also generated again when it has expired or has been cleared.

So what is the problem here? Why do people want infinite session token in facebook? How is it useful to both developers and end-users of facebook applications?

A: 

Why do people want infinite session token in facebook?

So that when they exit their browser and restart it, they don't have to type in the username and password again. The authentication is still there so they can just simply start facebooking.

Ngu Soon Hui
Wrong. 15 characters.
Dustin Fineout
+3  A: 

It's now called "offline_access". You're right in that most applications don't need this permission; however, occasionally an app may want to do some processing on behalf of the user while the user isn't present. For example, there are some blogging apps like posterous.com that allow you to email your blog posts - and they may want to publish without asking each time. For those, it's appropriate to ask for the extended perm.

Here's more information about how to request the permission: http://wiki.developers.facebook.com/index.php/Extended%5Fpermissions

Luke Shepard

related questions