Flash FaceBook Infinite Session
Anyone have any idea of how to create a infinite session so the user just logs in one time once the application has loaded and they remain logged in?
I'开发者_开发知识库ve tried storing e reseting this informations:
var sessionData: Object =
{
access_token: "",
expires: "",
secret: "",
session_key: "",
sig: "",
uid: ""
};
Facebook.init(APP_ID, onInit, {session: sessionData}, "ACCES_TOKEN");
And still when I try:
Facebook.login(handler, options);
It asks for it again, any insights please?
I solved it, you just need to init it with right values on the keys and dont call the login again and then you have a infinite session.
Before all that also, you have to ask permission with the key "offline_access"
精彩评论