WP Manifestindependent plugin directory
manifest / utilities / amp-facebook-fix

AMP Facebook App Browser fix.

A mini plugin that puts temporary fix for Facebook's in App browser redirection issue

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/milindmore22/amp-facebook-fix/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A 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.