0

Looking at Keith Donald's and Roger Hughes's spring tutorial, the flow is as follows;

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

However as my application is going to run on a facebook canvas I want to skip the sign-in to application stage (as it is meaningless to as the user to login explicitly to my application which already is running on facebook) for which the flow is going to be something like;

    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

Would really appreciate a sample.

Mykhailo
  • 1,134
  • 2
  • 17
  • 25
hevi
  • 2,432
  • 1
  • 32
  • 51

1 Answers1

0

I just noticed that there is a sample on gitspring-social-samples specifically for canvas usage.

hevi
  • 2,432
  • 1
  • 32
  • 51