If the game is connected with your Facebook account, all your game data will be safe even if you delete and reinstall the app.
But if you did not connect the game with your Facebook account and you played the game as a Guest, then all of your game data can be lost if you delete the app or if you reset your device.
So please take note of the above mentioned information and remember to connect your game with your Facebook account.