Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook privacy policy URL: Bad Response Code: URL returned a bad HTTP response code

I want to publish my first Facebook application and a Privacy Policy URL is required.

I have the page privacypolicy.html published in my website but I get the next message when I configure it in "App Details":

You must submit a valid Privacy Policy URL in order to be compliant with Facebook Platform. Request failed with error: Bad Response Code: URL returned a bad HTTP response code.

The http code returned when I request the page is 200

Any ideas?

like image 476
jimbo82 Avatar asked Nov 18 '15 19:11

jimbo82


2 Answers

The URL is cached by facebook. Adding # at the end of my Url did the job ..

like image 59
user2390340 Avatar answered Nov 09 '22 12:11

user2390340


This is an old question I know, but I figured I'd post my solution and hope it helps anyone. For me I got this error because I had rewrite rules that didn't catch the URL that Facebook actually goes to in order to get the privacy policy. Facebook adds a query string to the URL that you give it for the privacy policy and since my privacy policy page doesn't do anything with the query string, I didn't check for it in my rewrite rule.

You can check out how Facebook scrapes the page you give it by going to Facebook's Sharing Debugger and putting your URL in the input bar. You can also see the last time that Facebook tried to scrape that URL and tell Facebook to try again once you've fixed any issues. This will get around the caching that was mentioned in user2390340's post.

like image 2
Airistotal Avatar answered Nov 09 '22 12:11

Airistotal