Facebook Login Doesn't Work in Jetpack Comments
Impacted plugin
Jetpack
Steps to Reproduce
- Install, activate and connect the latest Jetpack release.
- Make sure comments are activated.
- Activate the option for visitors to use WordPress.com, Google, Twitter, or Facebook to comment (Jetpack Settings > Discussion).
- Try commenting using Facebook
A clear and concise description of what you expected to happen.
Being able to comment using the Facebook account.
What actually happened
Nothing happens and the page only does animation as if it loaded. An error is also shown in the console: Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings
Other information
This was initially received on 4751158-zen and I've been able to reproduce that on my end.
Operating System
No response
OS Version
No response
Browser
Firefox
Browser Version(s)
No response
Thanks for the report! That seems to be new. For reference, here is the full error:
{
"error": {
"message": "Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.",
"type": "OAuthException",
"code": 191,
"fbtrace_id": "AyGDq-JvegnrjwQ-FfkybGv"
}
}
cc @renanferrari Could this be linked to the recent changes you made to the app settings, as part of pbArwn-3xe-p2?
Hey @jeherve, thanks for the ping! Looking at the error message above, it does seem related.
For reference, here's how this issue was addressed on the backend: r238579-wpcom
Thanks for the extra details!
cc @pablinos, who worked on that change.
I think D74630-code should fix it.
Reported here: #4761250-zen
@jeherve,
Wanted to ask about a different, but related issue.
I did this
Activate the option for visitors to use WordPress.com, Google, Twitter, or Facebook to comment (Jetpack Settings > Discussion).
I was able to see the options to log in from WordPress.com, Google, Twitter, or Facebook on Firefox to add a comment, but on Chrome or Safari, I can't see them.
I tried it on a JN site, should I open a new issue for it?
Firefox:
Chrome

My bad, chrome works fine if I tried from a different profile, might probably have something to do with ad-blockers, so ignore my previous comment
might probably have something to do with ad-blockers
Yes, that would be it. Some ad-blockers specifically target and hide "social" things like logos. ¯_(ツ)_/¯
Hello. Has this been resolved. I couldn't quite work it out? Following up in relation to #4761250-zd
@rickmgithub The fix hasn't been merged yet. You can follow progress on this in D74630-code.
Should be fixed now. I merged it a few moments ago.
r239934-wpcom
There's still something going on here, but I can't figure it out. The social login option seems to show up intermittently on both the user's site and my test site. The user is back in 4816666-zen
- I've confirmed it doesn't show up on mobile for the user's site or my test site

- I WAS able to log into the comment form on the user's site with Facebook in my regular working tab in Chrome, at first. Brief screencast here.
https://user-images.githubusercontent.com/426388/155975002-cfa926b2-e435-4e11-bd76-1a6a730b9b9c.mp4
- When I tested in an incog window in Chrome (also logged into a Facebook account in the same window), the social options stopped showing up. Brief gifs: User's site || My test site.

- When I tested in incog Firefox, the social icons show up, but they just spin; they don't actually do anything. (Note that I'm also logged into a Facebook account in this window as well.) Brief gifs: User's site || My test site.

- There are some console errors, but I'm not sure what they mean or if they're relevant.

The common thread seems to be the incognito window?
- User has ruled out the theme.
- User has done the plugin dance.
- User has cleared browser cache and cookies.
- "Users must be registered and logged in to comment" is deselected
There are some console errors, but I'm not sure what they mean or if they're relevant.
Those are definitely relevant, thank you!
The common thread seems to be the incognito window?
Indeed. Do you happen to remember if you unchecked that option when opening the Chrome Incognito window? On my end it seems to work well on your test site when I uncheck that box.
Note: I updated your comment to upload the screenshots to GitHub directly instead of using Droplr. See pbg9X-fWF-p2 for more info.
I'm not sure which box you're referring to. Here's a quick summary of what I tried:
- Chrome, regular window, my test site and the user's site: I logged out of my WordPress.com account and was able to log in with Facebook.
- Chrome incognito window, my test site and the user's test site: no social sign-in options at all
- Firefox regular window, my test site and the user's test site: social sign-in options show up, but they just spin. Google sign-in does work.
- Firefox private window, my test site and the user's test site: social sign-in options show up, but they just spin. Google sign-in does work.
- Mobile iPhone 12, Ghostery browser. both sites: no social sign-in options
I'm not sure which box you're referring to.
Sorry, I should have been clearer. this one:

Although this affects the same feature, I think it's a different problem. That sameorigin error is unrelated to the fix we implemented for the Facebook app settings change, but is probably the problem.
Firefox is particularly strict about not letting you retrieve Facebook URLs on sites, especially with private browsing.
I've been testing using Facebook containers with more success. You need to allow jetpack.wordpress.com in the container too.
I'll have a try with the test site as soon as I can.
Sorry, I should have been clearer. this one:
Thanks for the clarification @jeherve -- I do have that toggled on.
I do have that toggled on.
I think that would break it, as it relies on being able to communicate with Facebook, but it looks like some kind of tracker to the browser.
Right. Third-party cookies are required for the social logins to work.
To the point about the social login buttons do not sometimes show, I added a check a month or so ago on the WordPress.com side that attempts to check for 3rd-party cookie support and hide the social login buttons if 3rd-party cookies are not supported. We do have it in our roadmap to fix third-party cookie support for comments this year, but I wouldn't expect it for a few months. Hiding the login buttons for browsers that were not supported seemed a simple way to improve the overall UX in the short-term.