Implemented FacebookErrorHandler to handle facebook-error-codes
[facebook-errors] / src / test / resources / spring / test-facebook-error-handler.xml
diff --git a/src/test/resources/spring/test-facebook-error-handler.xml b/src/test/resources/spring/test-facebook-error-handler.xml
new file mode 100644 (file)
index 0000000..e1b5629
--- /dev/null
@@ -0,0 +1,25 @@
+<?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>