Skip to content

Instantly share code, notes, and snippets.

@yugaego
Created January 14, 2015 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yugaego/7b3e7ef6e03831e5f75d to your computer and use it in GitHub Desktop.
Save yugaego/7b3e7ef6e03831e5f75d to your computer and use it in GitHub Desktop.
Facebook Login Channel File
<?php
$cache_expire = 60*60*24*365;
header("Pragma: public");
header("Cache-Control: max-age=".$cache_expire);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT');
?>
<script type="text/javascript">document.domain = "domain.com";</script>
<script src="//connect.facebook.net/en_US/all.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment