Your game progress is primarily synchronized through Facebook. To connect the game to Facebook, go to Settings, then Accounts, press the "Login with Facebook" button, and follow the instructions. This will also help you keep your game progress safe.
Please note that, after you complete the above steps, your Facebook profile icon will appear in the game's settings.
You can also synchronize the game through Google Play Games (on Android devices) and Game Center (on iOS devices).