Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook Customer Chat Plugin Auto Scroll to bottom

Recenlty i have included Facebook Customer Chat Plugin https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin in my website and it is working fine except, once a user login to facebook chat plugin and reload the same page or go to any other pages of website where this chat plugin is enabled, the page automatically scroll to bottom, this problem only occurs in Google Chrome ;_;

you can check this out here url https://www.coderare.com/

like image 686
MohammAd NishAt Avatar asked Nov 04 '25 22:11

MohammAd NishAt


1 Answers

After much trial and error I found it was the anchor tag within Facebook's "iframe src:...", and also the problem is limited to Chrome, anyway here's the fix:

.fb_dialog, .fb_reset {position: fixed !important;z-index: 10000 !important;}

You may not need the z-index, but included it as I needed it

Hope this helps as it has driven me insane! Not the most elegant solution but it works and avoids a lot of JS

like image 197
Tom Cato Avatar answered Nov 06 '25 13:11

Tom Cato



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!