Yes, that was the solution. Problem was with tabs. Now my bot can login and edit pages. Thanks for your help.