The Little Guy Posted May 25, 2010 Share Posted May 25, 2010 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 More sharing options...
The Little Guy Posted May 26, 2010 Author Share Posted May 26, 2010 anyone have any idea? Link to comment https://forums.phpfreaks.com/topic/202873-facebook-app-issue/#findComment-1063384 Share on other sites More sharing options...
ohdang888 Posted May 26, 2010 Share Posted May 26, 2010 i go to your page and have no idea what you are saying the problem is... can u clarify? Link to comment https://forums.phpfreaks.com/topic/202873-facebook-app-issue/#findComment-1063387 Share on other sites More sharing options...
The Little Guy Posted May 26, 2010 Author Share Posted May 26, 2010 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 More sharing options...
ohdang888 Posted May 26, 2010 Share Posted May 26, 2010 have you tried isolating particular lines by commenting out the last part, etc, to see what line is the problem? Link to comment https://forums.phpfreaks.com/topic/202873-facebook-app-issue/#findComment-1063392 Share on other sites More sharing options...
The Little Guy Posted May 26, 2010 Author Share Posted May 26, 2010 this line is the issue: $user_id = $facebook->require_login(); Link to comment https://forums.phpfreaks.com/topic/202873-facebook-app-issue/#findComment-1063393 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.