Have you already tried to generate the like button through https://developers.facebook.com/docs/reference/plugins/like/ ?