페이스북 적용중

This commit is contained in:
gnuboard
2013-05-17 15:12:50 +09:00
parent 3670af6204
commit 811f9a8893
5 changed files with 86 additions and 38 deletions

View File

@ -20,7 +20,7 @@ require '../src/facebook.php';
// Create our Application instance (replace this with your appId and secret).
$facebook = new Facebook(array(
'appId' => '119146498278078',
'secret' => '311e0d6ff8ff43cfe0e75fe82d71777c',
'secret' => '6ffd7e325e2b4fbd83a2eebf9c6f33f9',
));
// Get User ID
@ -82,6 +82,9 @@ $naitik = $facebook->api('/naitik');
</div>
<?php endif ?>
<h3>PHP Cookie</h3>
<pre><?php print_r($_COOKIE); ?></pre>
<h3>PHP Session</h3>
<pre><?php print_r($_SESSION); ?></pre>

View File

@ -3,8 +3,8 @@
require '../src/facebook.php';
$facebook = new Facebook(array(
'appId' => '344617158898614',
'secret' => '6dc8ac871858b34798bc2488200e503d',
'appId' => '119146498278078',
'secret' => '6ffd7e325e2b4fbd83a2eebf9c6f33f9',
));
// See if there is a user from a cookie
@ -24,6 +24,9 @@ if ($user) {
<!DOCTYPE html>
<html xmlns:fb="http://www.facebook.com/2008/fbml">
<body>
<h3>PHP Cookie</h3>
<pre><?php print_r($_COOKIE); ?></pre>
<?php if ($user) { ?>
Your user profile is
<pre>