when i turn my phone to right or left, its screen still remainsin center position while using facebook
Not all iOS apps are designed to rotate. Some may use only portrait or landscape mode, or switch depending on the content. To test screen rotation, open the Calculator app that comes with your device. If the screen does not rotate as expected while using the calculator app, continue troubleshooting.
Try the troubleshooting steps in TS3805.