Jump to content

Facebook App Issue


The Little Guy

Recommended Posts

I am making a facebook app, and on a page that I am testing it on, the page keeps changing these two values:

 

?auth_token=2cecbbdbaa843391d8f27d19ebc965cd

&auth_token=162b3df497306ffa9d32e0c939517ba3

 

to understand what I mean, go to this page: http://www.cleep.us/test.php

 

This is the example code Facebook gave me:

require_once '../classes/Facebook/facebook.php';

$appapikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$appsecret = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$facebook = new Facebook($appapikey, $appsecret);
$user_id = $facebook->require_login();

// Greet the currently logged-in user!
echo "<p>Hello, <fb:name uid=\"$user_id\" useyou=\"false\" />!</p>";

// Print out at most 25 of the logged-in user's friends,
// using the friends.get API method
echo "<p>Friends:";
$friends = $facebook->api_client->friends_get();
$friends = array_slice($friends, 0, 25);
foreach ($friends as $friend) {
  echo "<br>$friend";
}
echo "</p>";

 

Link to comment
https://forums.phpfreaks.com/topic/202873-facebook-app-issue/
Share on other sites

All that happens when I go to the page, is fist it asks for Permission, then I click "Allow" and then it goes back to my page and then the page is in a refresh loop...

 

How do I get it out of that refresh loop, it is supposed to display 25 of the users (a.k.a. your) friends, but it just sits in a loop.

 

Any ideas how to fix it?

Link to comment
https://forums.phpfreaks.com/topic/202873-facebook-app-issue/#findComment-1063391
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.