facebook.init.php 784 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Licence: GPL
  4. * Please contact CBlue regarding any licences issues.
  5. * Author: noel@cblue.be
  6. * Copyright: CBlue SPRL, 20XX
  7. *
  8. * External login module : FACEBOOK
  9. *
  10. * Configuration file
  11. * Please edit this file to match with your FACEBOOK settings
  12. * */
  13. /**
  14. * Facebook application setting
  15. * */
  16. require_once dirname(__FILE__) . '/facebook-php-sdk/src/facebook.php';
  17. global $facebook_config;
  18. //Loads the portal facebook settings
  19. $conf = dirname(__FILE__) . '../../inc/conf/auth.conf.php';
  20. /**
  21. * See facebook section of the auth.conf.php file
  22. */
  23. global $facebook;
  24. $facebook = new Facebook(array(
  25. 'appId' => $facebook_config['appId'],
  26. 'secret' => $facebook_config['secret']
  27. ));
  28. require_once dirname(__FILE__) . '/facebook.inc.php';