Support » Plugins » [Plugin: WPBook] require_login()

Viewing 6 replies - 1 through 6 (of 6 total)
  • Brooke



    We require login around line 51 of wpbook/theme/config.php you can play around with the lines starting at

    $facebook = new Facebook($api_key, $secret);
    $user = $facebook->require_login();

    Keep in mind that if you are to update WPBook your changes will be overwritten to make sure you keep a backup copy of your changes.

    thanks Bandon. But if i do this and go to my app.facebook url i get a blank page. I think its because the user needs to click “allow” first. But since no notification comes out, its blank.

    Anyway, is it possible to make it “allow Facebook Application” by default?




    If I read that right it looks like you must require login for the app to work. see:

    I think pages are set up more like profiles where they can be set to “public” but because an app can read a users data (their name, profile picture, etc) then it requires authorization. I could be wrong on this but that’s what I’m getting from a quick Google search.

    ok, thanks. I think it would be best that I will not edit require_login(). At least the applications’s about page is public. I can add a html page in there.

    one last thing, is it possible that if user is not logged in to facebook and they will view my application’s url (i.e. app.facebook) it will go to the application’s about page instead of the “require login”?



    I’m not sure if you can redirect if not logged in, i’m sure you may be able to write a simple if statement, such as

    if (check to see if not logged in) {
    redirect to the app about page

    I’m not sure exactly how to do this but it theoretically should be possible.

    ok ill try that out. And thanks for your time.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: WPBook] require_login()’ is closed to new replies.