Dry goods tutorial | WebApp adds WeChat sharing function

Today, when dumplings are flying all over the screen, Yuzi Jun will not sell you off, but will directly share with you the skills of adding WeChat sharing function to your webapp. How about using it as a dipping sauce for dumplings?
First of all, the conditions required to realize WeChat sharing:
❶ WeChat open platform account and submitting mobile applications need to pass the review and refer to the official tutorial: http://docs.apicloud.com/APICloud/Open Platform Access Guide/weChat
app WeChat sharing requires WeChat The appid of the open platform is not the appid of the public platform. Developers should not confuse the two.
❷ Add the WX module to the module
❸ Edit the application in the APICloud console and add the certificate
Next , share the steps to realize WeChat sharing:
mainly share the code, and the application management will pass by!
➀ First, in the APICloud console, create an application, select the type as webapp, fill in the name, description, and your URL, as shown below:

➁ Click the newly created application, and then select Cloud Compile to compile the Android app

➂ Put Download the app to the computer, change the suffix name from .apk to .zip, unzip --- "Search path\assets\widget ----" Copy the content in the widget to your app editing tool to start
editing➃ Open config.xlm and add

➄ open index.html in front, add


➅ the rest of the code, which needs to be done in your website, put the following code into the page you need to share, the blue part is the title, Description, picture, link address, need to be modified according to your website page.

For more dry goods tutorials, you can pay attention to Official V: Grapefruit Technology APICloud

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326033682&siteId=291194637