org.springframework.social.facebook
Class FacebookWebArgumentResolver
java.lang.Object
org.springframework.social.facebook.FacebookWebArgumentResolver
- All Implemented Interfaces:
- WebArgumentResolver
public class FacebookWebArgumentResolver
- extends java.lang.Object
- implements WebArgumentResolver
Web argument resolver that resolves arguments annotated with
FacebookAccessToken
or FacebookUserId
.
After a user has authenticated with Facebook via the XFBML
<fb:login-button> tag, their user ID and an access token are stored in
a cookie whose name is "fbs_{application key}". This web argument resolver
extracts that information from the cookie (if available) and supplies it to a
controller handler method as String values.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FacebookWebArgumentResolver
public FacebookWebArgumentResolver(java.lang.String apiKey)
resolveArgument
public java.lang.Object resolveArgument(MethodParameter parameter,
NativeWebRequest request)
throws java.lang.Exception
- Specified by:
resolveArgument
in interface WebArgumentResolver
- Throws:
java.lang.Exception