Added proper Facebook graph url for improved 'like' number accuracy.
Sanitize passed url, allowing this to pass unsanitized to file_get_contents is bad.
Added url checking to ensure that the request is coming from the same host. This ensures that you can't check other sites with your own site's script.