Title: Reverse Proxy Cache &#8211; L3 / Facebook
Last modified: August 22, 2016

---

# Reverse Proxy Cache – L3 / Facebook

 *  [Idiom](https://wordpress.org/support/users/brianbrey/)
 * (@brianbrey)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/reverse-proxy-cache-l3-facebook/)
 * We are using WSL, and ran into a challenge.
 * The site is hosted on EC2, Using Reverse Proxy (L3 Memory Cache). We have added
   the WSL Url to the Whitelist/non cache list. After adding the URL to the Whitelist
   Google+ works perfect, however Facebook still returns the authentication error(
   below).
 * **The URL Structure is:**
    sub.blog.domain.com/blog (primary url) sub.domain.
   com/blog (masked url via reverse proxy)
 * We have tried a combinations of the above 2 URL’s in Facebook Dev App and still
   no luck. in The WSL error log the URLs are showing as the primary url, even though
   the request is coming from the masked URL. Which I am assuming this is the primary
   with the mix/match.
 * Any ideas on how to fix?
 * If we bypass reverse proxy for the entire site it works perfect.
 *     ```
       ξ Authentication failed! Facebook returned an invalid user id.
       400. {"error":{"message":"Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request","type":"OAuthException","code":100}}
       ```
   
 * [https://wordpress.org/plugins/wordpress-social-login/](https://wordpress.org/plugins/wordpress-social-login/)

The topic ‘Reverse Proxy Cache – L3 / Facebook’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-social-login_a1a2bc.svg)
 * [WordPress Social Login](https://wordpress.org/plugins/wordpress-social-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-social-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-social-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-social-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-social-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-social-login/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Idiom](https://wordpress.org/support/users/brianbrey/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/reverse-proxy-cache-l3-facebook/)
 * Status: not resolved