Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot login to FB #90

Open
beeforever opened this issue Apr 25, 2014 · 2 comments
Open

cannot login to FB #90

beeforever opened this issue Apr 25, 2014 · 2 comments

Comments

@beeforever
Copy link

I cannot log in to FB using facebooker2. Is this still maintained?

Facebooker: 0.0.17
Mogli: 0.0.46
My code is:
<%= fb_connect_async_js %>
<%= current_facebook_user.inspect %> -> returns nil
Cookies: "__utmc"=>"61647035", "__utmb"=>"61647035.19.10.1398452838", "__utmz"=>"61647035.1391367306.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", "__utma"=>"61647035.752800087.1391367306.1398449392.1398452838.8"}

Generated code:

      <script>
        window.fbAsyncInit = function() {
          FB.init({
            appId  : 'APPID',
            status : true, // check login status
            cookie : true, // enable cookies to allow the server to access the session

            oauth : true,
            xfbml  : true  // parse XFBML
          });

        };


        (function() {
          var e = document.createElement('script'); e.async = true;
          e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
          document.getElementById('fb-root').appendChild(e);
        }());
      </script> 

<fb:login-button onlogin="try {
window.location.href = "http://URL/fb_oauth/facebook_log_in_out";
} catch (e) { alert('RJS error:\n\n' + e.toString()); alert('window.location.href = &quot;http://URL/fb_oauth/facebook_log_in_out\";'); throw e }" scope="email,read_friendlists,publish_stream" v="2">/fb:login-button

@mmangino
Copy link
Owner

I accept pull requests still, but I don't actively use it. Are you getting a login dialog at least?

@beeforever
Copy link
Author

I'm getting the login button, but the facebooker does not seem to recognize if I'm logged in to facebook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants