I am using option selected menu item, attached three item (share, login, logout) am select login item, go login activity login social sign (Facebook or google) any one, if login
In your Activity after successful login take handle of the menuItem in ActionBar and change it's visibility state
getMenu().findItem(R.id.login_menu_id).setVisible(false);
If you're using Toolbar then it will be like
toolbar.getMenu().findItem(R.id.login_menu_id).setVisible(false);
So setVisible(boolean) will change the visibility of a menuItem. Hope this helps