title: How to fetch group list from facebook using spring social facebook?
body: <p>I have connected my app with facebook using spring social facebook api. I've tried to fetch all groups using following way</p>
  
  <pre><code>FacebookTemplate facebookTemplate = new FacebookTemplate();     
  List&lt;Group&gt; group = facebookTemplate.fetchConnections("me", "groups", Group.class);   
  </code></pre>
  
  <p>But it generates the following error message</p>
  
  <pre><code>    org.springframework.social.MissingAuthorizationException: Authorization is required for the operation, but the API binding was created without authorization.
      org.springframework.social.facebook.api.impl.FacebookErrorHandler.handleFacebookError(FacebookErrorHandler.java:95)
      org.springframework.social.facebook.api.impl.FacebookErrorHandler.handleError(FacebookErrorHandler.java:60)
      org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:486)
      org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:443)
      org.springframework.web.client.RestTemplate.execute(RestTemplate.java:415)
      org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:213)
      org.springframework.social.facebook.api.impl.FacebookTemplate.fetchConnections(FacebookTemplate.java:180)
      org.springframework.social.facebook.api.impl.FacebookTemplate.fetchConnections(FacebookTemplate.java:174)
      com.horoppa.social.facebook.FacebookFeedController.postUpdate(FacebookFeedController.java:52)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:597)
  
  It may be required to create FacebookTemplate object using AccessToken for authorization. 
      FacebookTemplate facebookTemplate = new FacebookTemplate(AccessToken);
  </code></pre>
  
  <p>Please help me, how to get accessToken and how to fetch all groups.</p>