<?xml version="1.0" encoding="UTF-8" ?>
<provider id="facebook">
  <name>Facebook</name>
  <icon>facebook</icon>
  <translations>account-plugins</translations>
  <domains>.*facebook\.com</domains>
  <plugin>facebook</plugin>
  <single-account>true</single-account>

  <template>
    <group name="auth">
      <setting name="method">oauth2</setting>
      <setting name="mechanism">user_agent</setting>
      <group name="oauth2">
        <group name="user_agent">
          <setting name="Host">www.facebook.com</setting>
          <setting name="AuthPath">/dialog/oauth</setting>
          <setting name="RedirectUri">https://www.facebook.com/connect/login_success.html</setting>
          <setting name="ResponseType">token</setting>
          <setting name="Display">popup</setting>
          <setting name="Scope" type="as">['publish_actions','user_photos']</setting>
          <setting name="ClientId">@FACEBOOK_CLIENT_ID@</setting>
          <setting name="AllowedSchemes" type="as">['https','http']</setting>
        </group>
      </group>
    </group>
  </template>
</provider>
