GoogleChromeLabs / svgomg-twa

A sample that project Trusted Web Activities technology to wrap SVGOMG in an Android Application
Apache License 2.0
519 stars 132 forks source link

Facebook Comments Plugin Not Working in The TWA #114

Closed MarcellusMusic closed 3 years ago

MarcellusMusic commented 3 years ago

Describe the bug Thank you very much for this Lab. After building a TWA, I have noticed that the Facebook Comments plugin does not function in the app. In my app, users can view articles on item pages where the Facebook Comments plugin typically displays, and then users can add comments there.

To Reproduce Steps to reproduce the behavior:

  1. First, I scrolled to the comments section and wrote a comment and clicked "Log In to Post" Screenshot_20210116-214021

  2. A new tab opens inside of the TWA and takes me to the Facebook site to log in Screenshot_20210116-233139_Chrome (1)

  3. I enter my credentials to log in

  4. The app is then stuck in a continuously flashing blank tab Screenshot_20210116-233326_Chrome

Expected behavior I expected the plugin to behave as it normally does with Chrome and allow for comments to be posted.

Smartphone

MarcellusMusic commented 3 years ago

Closing this as I was able to resolve my own issue by enabling third party cookies in chrome, which then caused the Facebook comments plugin to function normally within my TWA.