AMP Facebook App Browser fix.
A mini plugin that puts temporary fix for Facebook's in App browser redirection issue
by Milind, rtCamp · github.com/milindmore22/amp-facebook-fix
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/milindmore22/amp-facebook-fix/archive/refs/heads/main.zipA mini plugin that puts temporary fix for Facebook redirection issue, it removes redirection script if it found Facebook's in app browser agents FB_IAB, FB4A, and FBAV
Warnning
The plugin may not work very well with Page caching, I will recommend turning off mobile redirection until Facbooks In-App Browser issue get's fixed OR issue #5383 of AMP plugin gets fixed.
Notes
- The plugin will work if you not logged in as administrator (in case you are testing it by setting user agents in browsers )
- The plugin will work if you not previewing it in customizer
- The plugin removes script for redirection.
- The plugin only work for Facebook android app.
- Feel free to reach us on WordPress Support forum of AMP plugin.
Plugin Structure
.
└── amp-facebook-fix.php
Need a feature in plugin?
Feel free to create a issue and will add more examples.