• Resolved ImageJake Edwards

    (@shadowxvii)


    You can get around the too many redirects issue by going to the Facebook Chat settings page in your WordPress instance.

    Use Developer tools (F12) to run the following JS snippet. Change your page_id to your page ID (Page > About > scroll to bottom).

         
          var page_id = 12345689012345;
          var locale = "en_US";
          var data = {
            'action' : 'fbmcc_update_options',
            'pageID' : fbmcc_sanitizeNumbersOnly(page_id),
            'locale' : fbmcc_sanitizeLocale(locale),
           '_wpnonce' : ajax_object.nonce,
          };
          jQuery.ajax({
            type: 'POST',
            url: ajax_object.ajaxurl,
            data: data,
            success: function(results) {
              jQuery('#fbmcc-page-params').css('display', 'inline-block');
            }
          });

    Make sure domain is setup in the Meta Business Suite: https://business.facebook.com/latest/inbox/settings/chat_plugin

Viewing 15 replies - 1 through 15 (of 24 total)
  • Which pageID is this? From Facebook or WP?

    —EDIT

    I used my FB pageid, but the js is not resolving the redirects, it is giving:

    Uncaught ReferenceError: fbmcc_sanitizeNumbersOnly is not defined

    So, how should run the JS if the source from FB is not loaded in the popup

    • This reply was modified 3 years, 3 months ago by Imagezephyr91.

    Oh I got it now, sorry I read it in a rush, so I didn’t see close where I was supposed to execute it. I was able to bypass the infinite redirects and its working fine now.

    – FB PageID
    – Run it in your own plugin page, using devtools

    Thanks.

    Thread Starter ImageJake Edwards

    (@shadowxvii)

    Hey @zephyr91 ,

    Yep, run it on:
    https://www.yourdomain.com/wp-admin/options-general.php?page=facebook-messenger-customer-chat

    In Developer Tools (either Edge or Chrome) via F12 in the console tab.
    Copy it into notepad first to edit and sub in your Page ID and you should be good to go.

    I can’t edit my post 🙁

    Regards
    Jake

    Thread Starter ImageJake Edwards

    (@shadowxvii)

    And lastly, you can customise the website domain and update the visuals of your widget here:

    https://business.facebook.com/latest/inbox/settings/chat_plugin

    I am stuck at this step…
    if i click Edit Chat Plugin Configuration it give same error as before for redirect.

    Let people start a conversation on your website and continue in Messenger. It’s easy to set up. Chats started on your website can be continued in the customers’ Messenger app, so you never lose connections with your customers. Even those without a Facebook Messenger account can chat with you in guest mode, so you can reach more customers than ever.

    Edit Chat Plugin Configuration

    Thanks a lot, it worked. But took a lot of time to find the page id. Anyway, thanks again

    Hello,

    I tried this (but not sure if I did it correctly)
    Can you tell me where should I add the code? I am no developer. 🙂
    It keeps loading and loading

    Maybe this post should be stikcy? It seems like more and more people keep looking for a workaround to what should work out of the box. Everyone opens their own ticket, and @shadowxvii usually replies with a link to here.

    Hi @shadowxvii
    I followed your instructions step by step but it doesn’t work.
    Can you help me?
    I write from Italy.
    Thanks

    Hi @shadowxvii,
    I did as you recommended but it didn’t work for me. any other option?

    Thanks

    I tried several times in different ways, but I could not solve the problem, can you make a video how to solve this problem

    This did nothing for me

    Edit: I take it back, it is acting like its setup now. However it’s still not showing the chat button on the homepage.

    Browser is blocking this new addition for CORS violation. Seems like its doing XSS.
    Careful. I deleted this plugin completely because I suspect Facebook is not actually who created it.

    • This reply was modified 3 years, 2 months ago by Imagelestado.
    • This reply was modified 3 years, 2 months ago by Imagelestado.

    Also cant seem to do this. @shadowxvii does this still work?

    • This reply was modified 3 years, 2 months ago by Imageparsamanesh.

    NOt working for me as well

    Thread Starter ImageJake Edwards

    (@shadowxvii)

    If you’re getting CORS errors then you haven’t set the domains correctly on the page info in the Facebook business centre & chat configuration.

    Here https://business.facebook.com/latest/inbox/settings/chat_plugin and https://business.facebook.com/<page>/settings/?tab=messenger_platform

    I don’t work for Facebook, so I can’t help each and everyone, sorry.

    Yes, it’s written by Facebook. Maybe if they didn’t fire everyone they’d be supporting it still.

    • This reply was modified 3 years, 2 months ago by ImageJake Edwards.
Viewing 15 replies - 1 through 15 (of 24 total)

The topic ‘Workaround for setup issue’ is closed to new replies.