XF 1.5 Xenforo Facebook Login Integration not working

Hi,

I've followed the XF Facebook integration guide, but on my XF it's not working. Since FB has updated its login integration setup which requires OAuth and redirect URIs now, that is not listed in the XF help guide as it seems to be outdated.

I've got the FB App ID and Secret and the app is LIVE. Following I've put into the FB app:

Settings --> Basic:
Site URL = http://www.MYDOMAIN.com/ --> My XF forums is installed on root
App Domains = MYDOMAIN.com

Products --> Facebook Login:
Client OAuth Login = Yes
Web OAuth Login = Yes
Valid OAuth redirect URIs = http://www.MYDOMAIN.com/register/facebook

I've tried various other redirect URIs, but nothing seem to work either. The XF forum's Tools > FB Integration Test gives FB page with blank error box. Neither any forum member account is presented with any FB authorization box when clicking and filling out their FB credentials.
Please help,
Thanks

Edit: My FB App Email is verified.
 
Last edited:

Mike

XenForo developer
Staff member
On the basic settings page, make sure you add the "website" platform with your URL.
 

CFMack

Active member
I have configured mine and it is not working. The result is a white screen with "Not Found" displayed at the top. I'm running 1.5.8

My main site: http://canobiefan.net/index.html
My forums: http://canobiefan.net/index.php

I created a test user account; username and pass are both "test"

In the Facebook App settings, no matter what I try to type for the App Domains, when I click Save Changes, all my entries change to "canobiefan.net"


Screen Shot 2017-06-05 at 6.02.56 AM.pngScreen Shot 2017-06-05 at 6.02.40 AM.pngScreen Shot 2017-06-05 at 6.04.07 AM.png
 

Chris D

XenForo developer
Staff member
No, on the contrary it will help because right now any URL that uses that value will be wrong...
 

CFMack

Active member
Well, six months later and I finally got this working. You were right Chris. I should have just tried this right away (your suggestion above). I am always so paranoid about losing my main site or the forums if I make any changes, since they both share the same URL. Thank you so much, Chris. So many of my members have been asking for this.

One question, does anyone know why the button looks like this?Screen Shot 2017-12-23 at 7.51.10 PM.png
 
Last edited:

Mike

XenForo developer
Staff member
That appears to be a missing image. It likely indicates that your custom style's image directory doesn't have all of the default images.
 

CFMack

Active member
Thanks, Mike. That is actually the default style. I agree though, I believe the "f" of Facebook should be in that spot to the left in the button container.
 

Mike

XenForo developer
Staff member
Ahh, you may be using an older version then. In more recent versions, there are template changes that pull that image in locally (though I don't recall the specific version with a fix).
 
Has Facebook updated their security recently? This was working fine for months and somewhat recently stopped working. I do the Facebook integration Test in the admin panel and it takes me to Facebook and it says it cannot forward from an http site. Guessing there is no way to use this unless I purchase an SSL cert for my website to make it https?

I also tried adding a valid URI in the facebook dev app section, but it said it will only accept https URIs.
 
Top