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

Enabling Messenger chat trigger errors #2622

Closed
sukafia opened this issue Aug 22, 2023 · 18 comments · Fixed by #2719
Closed

Enabling Messenger chat trigger errors #2622

sukafia opened this issue Aug 22, 2023 · 18 comments · Fixed by #2719
Assignees
Labels
priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue is a confirmed bug.

Comments

@sukafia
Copy link

sukafia commented Aug 22, 2023

✍️ Describe the bug

Enabling the messenger chat button triggers several errors in the console:

kTARsa.png

Access to XMLHttpRequest at 'https://web.facebook.com/plugins/customer_chat/SDK/?app_id=&attribution=fbe_woocommerce&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconnect%2Fxd_arbiter%2F%3Fversion%3D46%23cb%3Df2d1f3cb6736c4%26domain%3Ditsanothertestsite.mystagingwebsite.com%26is_canvas%3Dfalse%26origin%3Dhttps%253A%252F%252Fitsanothertestsite.mystagingwebsite.com%252Ff20bca75db2a22c%26relation%3Dparent.parent&current_url=https%3A%2F%2Fitsanothertestsite.mystagingwebsite.com%2F&event_name=chat_plugin_sdk_facade_create&is_loaded_by_facade=true&loading_time=0&locale=en_US&log_id=478eec60-bcae-46f2-a069-2bf63aa38c60&page_id=102798312634091&request_time=1692687350867&sdk=joey&should_use_new_domain=false&suppress_http_code=1' from origin 'https://itsanothertestsite.mystagingwebsite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. xfbml.customerchat.js:117 GET https://web.facebook.com/plugins/customer_chat/SDK/?app_id=&attribution=fbe_woocommerce&channel=https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconnect%2Fxd_arbiter%2F%3Fversion%3D46%23cb%3Df2d1f3cb6736c4%26domain%3Ditsanothertestsite.mystagingwebsite.com%26is_canvas%3Dfalse%26origin%3Dhttps%253A%252F%252Fitsanothertestsite.mystagingwebsite.com%252Ff20bca75db2a22c%26relation%3Dparent.parent&current_url=https%3A%2F%2Fitsanothertestsite.mystagingwebsite.com%2F&event_name=chat_plugin_sdk_facade_create&is_loaded_by_facade=true&loading_time=0&locale=en_US&log_id=478eec60-bcae-46f2-a069-2bf63aa38c60&page_id=102798312634091&request_time=1692687350867&sdk=joey&should_use_new_domain=false&suppress_http_code=1 net::ERR_FAILED 400

🚶‍♀️ Steps to reproduce

  1. Go to Marketing > Facebook > Messenger and Enable Messenger
  2. Check the browser console and notice several errors
  3. Disable messenger chat and notice all errors disappear

✔️ Expected behavior

Enabling messenger chat shouldn't trigger these errors.

Affected users

https://wordpress.org/support/topic/errors-307/ (led to this review)

@sukafia sukafia added priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue is a confirmed bug. labels Aug 22, 2023
@layoutd
Copy link
Collaborator

layoutd commented Aug 22, 2023

Thanks @sukafia, I'll review this ASAP and see if we can find a solution.

@layoutd layoutd self-assigned this Aug 22, 2023
@layoutd
Copy link
Collaborator

layoutd commented Aug 22, 2023

Some reports on the FB Developer Community forum as well: https://developers.facebook.com/community/threads/1005499880601235/

I've confirmed that the errors appear with the latest (3.0.32) as well as previous releases (3.0.20). This seems to be a recent change on the Facebook end.

Editing to add: Even though the console errors appear, the Messenger chat box continues to function correctly.

@layoutd
Copy link
Collaborator

layoutd commented Aug 22, 2023

Meta's own FB chat plugin has the same issues - the chat box loads and works correctly, but the console shows the blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. message.

@sukafia
Copy link
Author

sukafia commented Aug 25, 2023

@MatthiasReinholz could you please contact Facebook to look into this? Thank you.

@layoutd
Copy link
Collaborator

layoutd commented Aug 25, 2023

Just adding that I confirmed that the domains are present in the domain whitelist (https://www.facebook.com/settings?tab=advanced_messaging) as indicated by this developer documentation: https://developers.facebook.com/docs/messenger-platform/reference/messenger-profile-api/domain-whitelisting.

@shameemreza
Copy link

zd-6784337

@MarvinXu
Copy link

Editing to add: Even though the console errors appear, the Messenger chat box continues to function correctly.

My site is plain HTML. I added my domain to whitelist and plugin code to my HTML. Got same error and the chat box doesn't show at all!

@layoutd
Copy link
Collaborator

layoutd commented Sep 15, 2023

Our understanding is that Meta has recognized the issue and is filing an internal bug report. Hopefully it will be resolved on their end in the future (exact timeline unknown).

@ron1cne
Copy link

ron1cne commented Sep 18, 2023

Has there been any update from Meta as to the resolution or estimate to resolution? I wasn't able to find any response from Meta to any of the bug reports. Just crickets!

@layoutd
Copy link
Collaborator

layoutd commented Sep 18, 2023

@ron1cne AFAIK there has been no official public response, and the information we have is not very detailed unfortunately.

@imeda9
Copy link

imeda9 commented Oct 11, 2023

The problem is still not solved

@MarvinXu
Copy link

Is there any ways to contact facebook officials? I have send an email to [email protected] but no feedback.

BTW, there should be a way that I don't know of to fix this, because in my old website I use a third-party plugin to connect to facebook chat and it still works like a charm.

@layoutd
Copy link
Collaborator

layoutd commented Oct 18, 2023

Hi Marvin, beyond the above message board, we don't have much more information. What plugin are you using on your old site? Does it work on a new site, too? Maybe we can confirm that it works and try to figure out why.

@MarvinXu
Copy link

@layoutd Sadly I can't use it on my new site. The old site is built on a paid platform which I don't have the source code. You can check it on: https://www.breepoolcover.com/

@layoutd
Copy link
Collaborator

layoutd commented Oct 19, 2023

Hey @MarvinXu, I actually see the same errors on that site:
image

However, the Messenger chat still works. From testing, it looks like we're having the same issue with this extension, so it would appear to be something that has to be resolved on Meta's server side. Un/fortunately, it's not an issue that breaks functionality, so it probably won't be particularly high priority :/

@wflanagan
Copy link

For those that matter, it does pull down your web "score" on Google. So, these could in theory impact your ability to rank for search traffic.

@layoutd
Copy link
Collaborator

layoutd commented Mar 18, 2024

Meta has clarified that this feature will be disabled in May, 2024:
image

On May 9, 2024, you will no longer be able to access any of the functionality of the Chat Plugin. Effective immediately, Chat Plugin in guest mode is no longer available. Other features like m.me links will still be available for you to use.

@wflanagan
Copy link

ok. good to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high The issue/PR is high priority—it affects lots of customers substantially, but not critically. type: bug The issue is a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants