开发者

What is the use of infinite session in facebook?

开发者 https://www.devze.com 2022-12-14 07:27 出处:网络
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

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.

S开发者_StackOverflow中文版o 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?


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: https://developers.facebook.com/docs/guides/policy/examples_and_explanations/Extended_Permissions/


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号