org.springframework.social.facebook.web
Annotation Type FacebookCookieValue


@Target(value=PARAMETER)
@Retention(value=RUNTIME)
@Documented
public @interface FacebookCookieValue

Annotation that indicates to FacebookWebArgumentResolver that a controller method parameter should be bound to a value from the Facebook cookie written when the user signed in with Facebook.


Optional Element Summary
 boolean required
          Whether the Facebook access token is required.
 java.lang.String value
          The specific element of the cookie to be bound (e.g., "uid", "access_token", etc)
 

value

public abstract java.lang.String value
The specific element of the cookie to be bound (e.g., "uid", "access_token", etc)

Default:
""

required

public abstract boolean required
Whether the Facebook access token is required. Default is true, leading to an exception being thrown in case the Facebook cookie is missing or if the value can't be found in the cookie. Switch this to false if you prefer a null in case of the missing cookie/value.

Default:
true