You should read https://developers.facebook.com/docs/apps/upgrading/ . Public post search have been deprecated and is not available anymore.
Lee mas