A resource sharing method, comprising: configuring a to-be-shared resource by using a processor, to obtain data needed for obtaining a resource; obtaining a user identifier of a currently logged-in social networking application; obtaining a resource sharing message image template, a user-defined visible element, and configuration information of the visible element that are associated with the user identifier; drawing a resource sharing message image according to the resource sharing message image template, the visible element, and the configuration information, and displaying the resource sharing message image on a social network propagation page of the social networking application; and transferring, by using a social network, a resource sharing message corresponding to the resource sharing message image, the resource sharing message comprising the data needed for obtaining a resource; characterized in that the obtaining a resource sharing message image template, a user-defined visible element, and configuration information of the visible element that are associated with the user identifier comprises: querying a server for the resource sharing message image template, the user-defined visible element, and the configuration information of the visible element that are associated with the user identifier, which comprises: determining whether locally drawn data associated with the user identifier is stored, wherein the drawn data comprises the resource sharing message image template, the user-defined visible element, and the configuration information of the visible element that are associated with the user identifier; if locally the drawn data is stored, querying the server whether a change occurred in the drawn data corresponding to the user identifier, in a time period from a time when the drawn data was obtained last time to a current time; and if no change occurred, directly locally obtaining the drawn data corresponding to the user identifier; or if a change occurred or if locally the drawn data is not stored, querying the server for the drawn data corresponding to the user identifier. configuring a to-be-shared resource by using a processor, to obtain data needed for obtaining a resource; obtaining a user identifier of a currently logged-in social networking application; obtaining a resource sharing message image template, a user-defined visible element, and configuration information of the visible element that are associated with the user identifier; drawing a resource sharing message image according to the resource sharing message image template, the visible element, and the configuration information, and displaying the resource sharing message image on a social network propagation page of the social networking application; and transferring, by using a social network, a resource sharing message corresponding to the resource sharing message image, the resource sharing message comprising the data needed for obtaining a resource; characterized in that the obtaining a resource sharing message image template, a user-defined visible element, and configuration information of the visible element that are associated with the user identifier comprises: querying a server for the resource sharing message image template, the user-defined visible element, and the configuration information of the visible element that are associated with the user identifier, which comprises: determining whether locally drawn data associated with the user identifier is stored, wherein the drawn data comprises the resource sharing message image template, the user-defined visible element, and the configuration information of the visible element that are associated with the user identifier; if locally the drawn data is stored, querying the server whether a change occurred in the drawn data corresponding to the user identifier, in a time period from a time when the drawn data was obtained last time to a current time; and if no change occurred, directly locally obtaining the drawn data corresponding to the user identifier; or if a change occurred or if locally the drawn data is not stored, querying the server for the drawn data corresponding to the user identifier. determining whether locally drawn data associated with the user identifier is stored, wherein the drawn data comprises the resource sharing message image template, the user-defined visible element, and the configuration information of the visible element that are associated with the user identifier; if locally the drawn data is stored, querying the server whether a change occurred in the drawn data corresponding to the user identifier, in a time period from a time when the drawn data was obtained last time to a current time; and if no change occurred, directly locally obtaining the drawn data corresponding to the user identifier; or if a change occurred or if locally the drawn data is not stored, querying the server for the drawn data corresponding to the user identifier.