Title: Validation Errors Unnecessary
Last modified: March 2, 2019

---

# Validation Errors Unnecessary

 *  Resolved [David Elstob](https://wordpress.org/support/users/davwaiguy/)
 * (@davwaiguy)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/validation-errors-unnecessary/)
 * 1. When I edit my WordPress posts, the sanitizer strips both my Facebook Like
   and Comments from the page. Then gives me an error for them, even though it has
   stripped them and I can’t delete them anyway.
 * I just put them back in which is what I want, but it’s a chore!
 * 2. I’m trying to use AMP everywhere, but when I turn on my homepage – which is
   an archive page for my blog posts – I get another error saying Facebook plugin
   not used. It seems to be flagging things that aren’t a problem.
 * Please can you advise? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/validation-errors-unnecessary/#post-11270776)
 * Please share the URL for your site where we can see the issue. Are you in paired
   mode?
 * Note that for Facebook Like and Facebook Comments to work, you’ll need to use
   the AMP components:
 * [https://www.ampproject.org/docs/reference/components/amp-facebook-like](https://www.ampproject.org/docs/reference/components/amp-facebook-like)
   
   [https://www.ampproject.org/docs/reference/components/amp-facebook-comments](https://www.ampproject.org/docs/reference/components/amp-facebook-comments)
 *  Thread Starter [David Elstob](https://wordpress.org/support/users/davwaiguy/)
 * (@davwaiguy)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/validation-errors-unnecessary/#post-11272033)
 * Hi Weston,
 * My site is: [https://gossiplolly.com](https://gossiplolly.com)
 * I am running in AMP only native mode now and have even set my homepage to use
   AMP template also, because it was causing me problems if I didn’t. (Had to have
   two lots of Google Adsense, plus navbar didn’t work on homepage, etc.)
 * The Facebook components were installed and working on all pages, apart from being
   occasionally stripped out by the sanitizer.
 * To get rid of the error on my homepage, all I have done is add a Facebook comment
   section, which isn’t ideal, but I can live with it.
 * **So my only question now is how to deal with the sanitizer stripping the Facebook
   components, if it happens again.**
 * Thanks for your reply.
 *  Plugin Author [Pascal Birchler](https://wordpress.org/support/users/swissspidy/)
 * (@swissspidy)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/validation-errors-unnecessary/#post-11275661)
 * As long as you are using the `<amp-facebook-comments>` and `<amp-facebook-like
   >` components, the sanitizer should not remove them at all.
 * However, if you find that it would, in fact, strip the AMP components, this would
   be considered a bug in the plugin. In that case it would be great if you could
   open an issue at [https://github.com/ampproject/amp-wp](https://github.com/ampproject/amp-wp)
   with some steps to reproduce the problem.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Validation Errors Unnecessary’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [likes](https://wordpress.org/support/topic-tag/likes/)
 * [sanitizer](https://wordpress.org/support/topic-tag/sanitizer/)

 * 3 replies
 * 3 participants
 * Last reply from: [Pascal Birchler](https://wordpress.org/support/users/swissspidy/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/validation-errors-unnecessary/#post-11275661)
 * Status: resolved