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

Fixed Facebook integration - no email returned

Sim

Well-known member
#1
I'm hoping someone can help me troubleshoot Facebook integration for my site - when I test the integration it is not returning an email address.

2015-07-11_9-07-43.png

I've done a lot of reading about this and most people point to not having a verified email address specified as your primary contact in your Facebook profile, but I've checked that and removed/re-added my email addresses several times to make sure it's not that.

2015-07-11_9-13-08.png

I also asked a few of my members to test the integration by trying to link their forum accounts with their Facebook profiles, but in every case they got the error about an email address not being returned.

2015-07-11_9-21-47.png

Here are my Facebook App setup details:

2015-07-11_9-12-09.png

2015-07-11_9-12-21.png

... now interestingly, I have had no difficulty disassociating my xenforo.com forum account with my facebook profile and then re-adding it again. So I'm pretty sure that there is nothing wrong with my Facebook account.

I read somewhere about using the Graph API Explorer to test whether the email address is returned correctly:

2015-07-11_9-09-08.png

... which it is ...

2015-07-11_9-11-18.png

... I'm at a loss as to what else to try to troubleshoot this issue.

Any suggestions?

I also tried setting up Facebook integration with one of my other XenForo forums and had the same problem - so I don't think it's specific to my XenForo installation.
 
Last edited:

Sim

Well-known member
#4
@Dakis @MS1 ... have either of you associated your xenforo.com accounts with your Facebook accounts?

Curious to know if it worked for you (it did for me).

@MS1 ... can I guess based on your avatar that you are also in Australia like Dakis and myself?

Perhaps this is a localised Facebook issue - which is why it works on xenforo.com, but not for us?
 

Dakis

Well-known member
#5
No I haven't. Good catch that all 3 of us are in Australia, perhaps it is an issue here, who knows?

Just wanted to mention I'm testing this on the latest 1.5 beta.
 

Brogan

XenForo moderator
Staff member
#7
It works fine for me on multiple installations/domain/FB accounts.

You could try registering a new FB account and app to see if that works (not sure on FB's policy with regards to that).
 
#8
Hi guys,

I'm embarrassed...I'm german :D
Sorry, for the misleading avatar. At that time I wanted to test the avatars function quickly and took the first picture that came along. Nevertheless some germans also like koala bears ;)

Honestly, I don't know much about the coding of the login system with social media.
So, I can't analyse the error on the API level to find the solution.

I only assume that there must be an error/ false setting in our (@Sim , @Dakis ) Xenforo-Facebook connection!? If there would be a problem with your personal facebook account you couldn't login on other sites.
Or is this argument invalid?
 

Sim

Well-known member
#9
You could try registering a new FB account and app to see if that works (not sure on FB's policy with regards to that).
Unfortunately I'm pretty sure that is not allowed ... although I guess there's nothing stopping you from doing it for testing purposes.
 

Sim

Well-known member
#10
I'm embarrassed...I'm german :D
Sorry, for the misleading avatar. At that time I wanted to test the avatars function quickly and took the first picture that came along. Nevertheless some germans also like koala bears ;)
It's okay - I'm from South Australia ... and descended from German ancestors who emigrated to Australia back in the 1850s - lots of German influence where I come from :D
 

Sim

Well-known member
#11
You could try registering a new FB account and app to see if that works (not sure on FB's policy with regards to that).
Okay, I created a brand new Facebook account, registered for the Developers program, created my app and had exactly the same problem :(

I'd really appreciate any suggestions on how we can go about debugging or troubleshooting this problem.

@Brogan (or any other staff member), is there any chance we could experiment with you (temporarily) creating a Facebook App for me to test with to try and isolate where the issue might lie?
 

Chris D

XenForo developer
Staff member
#15
At this stage there's no reason to believe it's XF because it appears to be working for most people, though they make so many changes to the API it's hard to say, and people can opt in and out of certain API changes.

I have been meaning to come back to this and check a few things relating to any new breaking changes they are implementing. I'll let you know if I can make sense of it.
 

Mike

XenForo developer
Staff member
#16
Has everyone with this problem just recently created their Facebook app? (Specifically, within the last week?)
 

Mike

XenForo developer
Staff member
#17
This appears to be related to the new 2.4 API (which was activated on July 8th) and the way that API created (or first used) after it was enabled will not be able to use older versions. Our next release will change to use 2.4 and the include the necessary code changes to support it.
 

Sim

Well-known member
#18
Yes, I've been using newly created apps. This would certainly explain the problem everyone has been having - thanks Mike.

I have some old apps for other sites I'm not currently using - I might try and see if I can repurpose one of those and make it work. Will report back.

@Mike when you say "our next release" are you referring to 1.5?
 

Mike

XenForo developer
Staff member
#20
It's been fixed for the next 1.4 release as well as 1.5. It'll be in a 1.5 beta release earlier, but we don't recommend running those in production, so I'm not sure if that counts.