An account binding method, comprising: logging in, by an electronic device, to a user account of a first application; detecting , by the electronic device, a first preset operation of a user, wherein the first preset operation is used to indicate to associate a second application with the first application; obtaining , by the electronic device by using the first application, a unique open identity OpenID corresponding to the user account of the first application; sending , by the electronic device, the OpenID and identity information of the second application to a server of the first application; and obtaining , by the electronic device, account binding success information from the server of the first application, wherein the account binding success information is used to indicate that the user account of the first application is bound to a user account of the second application; wherein after the sending, by the electronic device, the OpenID to a server of the first application, the method further comprises: obtaining, by the electronic device, login page information of the second application from the server of the first application, wherein the login page information comprises the OpenID; displaying, by the electronic device, a login page of the second application based on the login page information; obtaining, by the electronic device, the user account that is of the second application and that is entered by the user on the login page; and sending, by the electronic device, the user account that is of the second application and that is entered by the user and the OpenID to a server of the second application. logging in, by an electronic device, to a user account of a first application; detecting , by the electronic device, a first preset operation of a user, wherein the first preset operation is used to indicate to associate a second application with the first application; obtaining , by the electronic device by using the first application, a unique open identity OpenID corresponding to the user account of the first application; sending , by the electronic device, the OpenID and identity information of the second application to a server of the first application; and obtaining , by the electronic device, account binding success information from the server of the first application, wherein the account binding success information is used to indicate that the user account of the first application is bound to a user account of the second application; wherein after the sending, by the electronic device, the OpenID to a server of the first application, the method further comprises: obtaining, by the electronic device, login page information of the second application from the server of the first application, wherein the login page information comprises the OpenID; displaying, by the electronic device, a login page of the second application based on the login page information; obtaining, by the electronic device, the user account that is of the second application and that is entered by the user on the login page; and sending, by the electronic device, the user account that is of the second application and that is entered by the user and the OpenID to a server of the second application. obtaining, by the electronic device, login page information of the second application from the server of the first application, wherein the login page information comprises the OpenID; displaying, by the electronic device, a login page of the second application based on the login page information; obtaining, by the electronic device, the user account that is of the second application and that is entered by the user on the login page; and sending, by the electronic device, the user account that is of the second application and that is entered by the user and the OpenID to a server of the second application. <EOS>