1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Facebook Login Setup?

Discussion in 'Troubleshooting and Problems' started by kuyenmotdivad, Oct 10, 2010.

  1. kuyenmotdivad

    kuyenmotdivad Active Member

    erich37 likes this.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Hi Dave

    Still not working eh? :D

    Just to be clear, are you trying to log in to an existing account on your forum using your Facebook credentials?
    Or is this for a brand new account which you originally logged in with from Facebook?

    I haven't used this feature yet so where are you getting the "Please enter a valid email." error?
  3. kuyenmotdivad

    kuyenmotdivad Active Member

    Click here - "register/facebook?reg=1" then click "I agree" then "sign up" and you'll see what I mean.

    No idea why its showing "Create New Account" and "Associate Existing Account" on my site when on this site it only shows "Associate Existing Account" for me.
  4. turtile

    turtile Well-Known Member

    Once you're in the application on Facebook, go to Edit Settings -> Click on Web Site on the left hand side -> enter your Site URL and Site Domain
    Xarcell likes this.
  5. kuyenmotdivad

    kuyenmotdivad Active Member

    Done that but I still get the same error as above.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    I've just gone through the process of setting it up and registering.
    This is what I did:

    • Login to Facebook using your normal Facebook account (although this is not necessary to create an application)
    • Note down the Application ID and Application Secret
    • Click on Edit settings on the right hand side
    • Click on Web Site on the left hand side and enter:
      • Site URL: http://www.mysite.com/
        • Note: this must be the directory where the forum is installed and include the trailing /
      • Site Domain: mysite.com
        • Your main domain without the http:// and trailing slash, only required for authentication on sub-domains
    • Login to your XenForo forum and go to ACP -> Home -> Options -> Facebook
      • Enter the Application ID and Application Secret obtained above
      • Save Changes
      • Log out of XenForo
    • Open XenForo in a new window/tab and click on Login and then Login with Facebook
      • Enter your Facebook email address and password (if not logged in to Facebook), otherwise allow access for the application
      • Edit your username if you don't want it to be the same as your Facebook name or, associate it with an existing account
      • Agree to the terms and rules and click Sign Up
    And you're done.

    I just tested that from scratch on my site and it worked fine.

  7. Floris

    Floris Guest

    I can create an account, fill in the details, wait a while so fb is propagated, then I fill in the details on xenforo instance, and try it out 5 minutes later. users can login and associate an existing account, but when creating a new account it says invalid value. so annoying.
    erich37 likes this.
  8. kuyenmotdivad

    kuyenmotdivad Active Member

    I get this when I do it on my site notice the email and "create new Account"
    And image 2 should show just Associate Existing Account (like on this site"​
    The way it should be showing like on this site.​
    See what I mean?​
    erich37 likes this.
  9. Jamie

    Jamie Well-Known Member

    Something has to be up on Facebook's end or something odd I am missing because I have tried to get this to work with my old app (that has been working on my site for a while without a problem) and now using Brogan's step by step and can't get it to work.

    No matter what I try, when I attempt to connect with Facebook I get this: An error occurred while connecting with Facebook. Please try again later.

    You are correct Floris, very annoying...

    Ahmed Nawaz likes this.
  10. kuyenmotdivad

    kuyenmotdivad Active Member

    Does this have to be filled in -
  11. Brogan

    Brogan XenForo Moderator Staff Member

    None of that is required.

    Just the Web Site details I posted above.

  12. kuyenmotdivad

    kuyenmotdivad Active Member

    done that but still wont work. Only just started Facebook and I allready hate it... :mad:
  13. Mike

    Mike XenForo Developer Staff Member


    Your invalid email thing is happening because it's only been granted the FB proxy email, rather than a regular email. I don't even thing that was an option at the time the code was written, but I could be wrong. It looks like supporting the proxy mails would involve making our email field significantly longer. We could, though this is probably the only time it's needed. If you remove the application from your FB profile and regrant permission, I suspect it'll work.

    You get the option to register a new account or associate with an existing one if your FB email isn't in use already. Here, you only get the associate option because your accounts are using the same addresses.
  14. Floris

    Floris Guest

    My facebook issue has been debugged with mike, and for my situation it has been fixed.
  15. kuyenmotdivad

    kuyenmotdivad Active Member

    How would I do this as i'm new with FaceBook?
  16. Mike

    Mike XenForo Developer Staff Member

  17. kuyenmotdivad

    kuyenmotdivad Active Member

    Get the same again. I clicked on show - authorisation then clicked the x's
  18. erich37

    erich37 Well-Known Member

    so it does not make sense to setup this Facebook-Connect-App at the moment ?
    Does it work or not ?
  19. Brogan

    Brogan XenForo Moderator Staff Member

    It works for me.
    It works here too.
  20. yoghurtfarmer

    yoghurtfarmer Well-Known Member

    Works for me.

    It didn't work and I had the hardest time figuring out why. Turned out I put in a trailing slash for my site URL when configuring Xenforo (it tells you not to).
    andresmac likes this.

Share This Page