login problem (only reload)

6 replies
  • WEB DESIGN
  • |
hi guys

i have a problem. i installed the app, imported the database, filled in the facebook information like the tutorial. but when i want to login, i press the login with facebook button and nothing. my page reloads every time but im not logged in. i made any screenshots to show you my problem.

my facebook links




the first time when i press the login with facebook button



the login with facebook button



i dont know what i have to do now. please help me
#login #problem #reload
  • Profile picture of the author ImagineMonkey
    Might want to blur out your APP ID and secret key. Like.. asap.
    Signature
    Imagine Monkey: Designing websites, one banana at a time.

    http://www.ImagineMonkey.com
    {{ DiscussionBoard.errors[6830381].message }}
  • Profile picture of the author daddykool
    What browser are you using to "view" it with?
    Signature
    LAUNCHING VERY SOON > PRE-REGISTER NOW FOR A WSO THAT EVERY WARRIOR NEW & OLD CAN MAKE $$$ FROM! LIMITED PRE-LAUNCH SPACES - PM or email: JVSuperstars@gmx.com TO RESERVE A PLACE & LOCK IN A SUPER LOW LIFETIME PRICE! *** NEVER TO BE REPEATED PRICE ONLY AVAILABLE ON THE WARRIOR FORUM & OUR VERIFIED JV AFFILIATE PROVIDERS! ***
    {{ DiscussionBoard.errors[6830386].message }}
    • Profile picture of the author doctorxxx
      Originally Posted by ImagineMonkey View Post

      Might want to blur out your APP ID and secret key. Like.. asap.
      i do it in admin panel
      Originally Posted by daddykool View Post

      What browser are you using to "view" it with?
      chrome
      Signature
      MY YOUTUBE CHANNEL
      is the easiest way to have fun!
      {{ DiscussionBoard.errors[6831178].message }}
  • Profile picture of the author doctorxxx
    i need help where are u
    Signature
    MY YOUTUBE CHANNEL
    is the easiest way to have fun!
    {{ DiscussionBoard.errors[6837253].message }}
    • Profile picture of the author danielepr
      You should have this PHP piece of code for login:


      <?php
      require "[your_path_for_facebook]/facebook.php";


      $facebook = new Facebook(array(
      'appId' => '{APP_ID}',
      'secret' => '{SECRET}',
      ));

      $user = $facebook->getUser();

      if ($user) {
      try {
      $user_profile = $facebook->api('/me');
      } catch (FacebookApiException $e) {
      $user = null;
      }
      }

      if (!$user) {
      $args = array('scope' => 'email');
      echo '<a href="' . $facebook->getLoginUrl() . '">Login with Facebook</a>';
      } else {
      $fname=$user_profile['first_name'];
      $email=$user_profile['email'];
      }
      ?>


      Liebe Grüße
      Signature

      Smart Local Business Finder: www.best-marketing-ideas.com/yt/lbmt.php
      Advertising secrets never revealed in any better way: www.copywriting-videos.com/cwv/index7.php

      {{ DiscussionBoard.errors[6843213].message }}
      • Profile picture of the author danielepr
        important...

        1) create a <div> element with background your facebook image in yout HTML page

        2) assign id="login" to this div

        3) you should have something like <div id="login" style="background:[your_image_folder]/facebook_button.png"></div>

        4) include the following code to your HTML code:

        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

        <div id="login" style="background:[your_image_folder]/facebook_button.png">Login with Facebook</div>

        <div id="fb-error"></div>
        <div id="fb-root"></div>


        <script src="http://connect.facebook.net/en_US/all.js"></script>
        <script>
        FB.init({ apiKey: '{your_api_key}',
        status: true,
        cookie: true,
        xfbml: true,
        oauth: true,
        });

        $('#login').click(function(evt){
        FB.login(handleSessionResponse,{perms:'publish_str eam,email,user_checkins'});
        });


        function handleSessionResponse(response) {

        if (!response.authResponse) {
        $("#fb-error").html("<span style='color:#660000'>Connection to Facebook failed</span>");
        return;
        }

        FB.api(
        {
        method: 'fql.query',
        query: 'SELECT name, pic FROM profile WHERE id=' + FB.getAuthResponse().userID
        },
        function(response) {
        var user = response[0];
        location.href="fb.php";
        }
        );
        }
        </script>


        5) call the previous script (I posted before) as fb.php and save it in the same path as the page of your FB button

        6) test your tool and grab a cup of coffee!


        Basically this is the newest and most stable method for login. It is based on Jquery.
        The other traditional method is causing many problems. The migration to jQuery is a MUST now

        Alles Gute
        Signature

        Smart Local Business Finder: www.best-marketing-ideas.com/yt/lbmt.php
        Advertising secrets never revealed in any better way: www.copywriting-videos.com/cwv/index7.php

        {{ DiscussionBoard.errors[6843277].message }}

Trending Topics