如何为facebook画布应用程序配置spring-social-facebook

时间:2012-11-30 13:48:05

标签: facebook spring spring-mvc spring-social

查看Keith Donald'sRoger 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

真的很感激样品。

1 个答案:

答案 0 :(得分:0)

我刚注意到gitspring-social-samples上有一个专门用于画布使用的示例。