So I’ve been dealing with Facebook’s like button error for a while. FB offers an easy way of putting a Like button in your WordPress theme by using a configurator which will give you codes once you input some needed info. I got it from here https://developers.facebook.com/docs/reference/plugins/like/ and I thought I just messed up some codes because when I click the button, it gives me this error:
“Sorry, this post contains a suspicious URL: Unknown error”.
Upon doing some checks I got it all sorted out. Ugh.
By default ec2 gives a public DNS something like ec2-x-x-x-x.us-west-2.compute.amazonaws.com and Facebook treats it as a suspicious URL.Well, of course it does look suspicious. Look how long the URL is.
I tried other “valid” URLs and they worked.