查看Keith Donald's和Roger Hughes's春季教程,流程如下;
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
真的很感激样品。