看Keith Donald和Roger Hughes 的spring 教程,流程如下;
IF user is signed in to to application THEN
IF user is signed in to Facebook
read Facebook data,
display Facebook data
ELSE (facebook handles)
ask user to loging to Facebook
goto if user is signed in to Facebook step
ENDIF
ELSE
ask user to sign in
create user object with an id
when user has signed in, go back to the beginning
END IF
但是,由于我的应用程序将在 facebook 画布上运行,我想跳过登录到应用程序阶段(因为作为用户显式登录到已经在 facebook 上运行的我的应用程序是没有意义的),流程是会是这样的;
create a user (session scope)
IF user is signed in to Facebook
update user object with facebook id
read Facebook data,
display Facebook data
ELSE (facebook handles)
ask user to loging to Facebook
goto if user is signed in to Facebook step
ENDIF
真的很感激样品。