Take the 2-minute tour ×

I've the following code in my iframe Facebook app

/* include the PHP Facebook Client Library to help
  with the API calls and make life easy */

require_once 'facebook.php';

$appapikey = 'key here';
$appsecret = 'secret here';

$user_id = $facebook->require_login(); 


The problem is that the app keeps loading and reloading.

Is my implementation wrong?

share|improve this question
OK I got it.. Not exactly sure how it got fixed but this is what I did (In case someone is facing the same trouble!!) 1) Got to Privacy settings and remove the application and re authorize it!! –  ptamzz Feb 21 '11 at 9:33
Are you using the old PHP-SDK? –  ifaour Feb 21 '11 at 10:09
Yes. Im using the old one. –  ptamzz Feb 22 '11 at 7:36

1 Answer 1

dude you haven't add any check there. Everytime its just doing login. You have to check that user is logged or not if user is not logged then you have to run this code else do the action. I guess you must be having fb php sdk,check its demo example.If you dont got it download from here.

share|improve this answer

Your Answer


