You can use Facebook API in a appropriate way by using facebook developers tool, from there you can read that how to use the API.