--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:oauth="http://www.springframework.org/schema/security/oauth2"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
+ http://www.springframework.org/schema/security/oauth2
+ http://www.springframework.org/schema/security/spring-security-oauth2-1.0.xsd
+ ">
+
+
+ <oauth:rest-template id="template" resource="resource"/>
+ <oauth:resource
+ id="resource"
+ type="client_credentials"
+ client-id="EGAL"
+ client-secret="EGAL"
+ authentication-scheme="query"
+ access-token-uri="https://graph.facebook.com/v2.0/oauth/access_token"
+ token-name="oauth_token"
+ scope="read_stream"
+ />
+
+</beans>