Light application access guide
Access process
Introduction
#What is a light application?
Light application is a set of basic framework and access services (Focus On Mobile) provided by Weibo for third-party services (H5 pages) to access Weibo.
The light application entrance is in the Weibo Page (also called Profile page, personal homepage), or Weibo Card, and is developed by the access party in the form of a web application.
According to the display platform, light applications are divided into two types: embedded through iframe on desktop browsers (hereinafter referred to as Web version), and displayed through Webview in Weibo clients (hereinafter referred to as Referred to as H5 version). Your app can choose one of the two display platforms, or it can support both.
Features
Light applications provide more channels that are close to users in line with the attributes of the Weibo platform, promote the formation of two-way relationships between users and merchants, and allow users to more effectively discover and Use the Services.
- • Convenient access. The accessing H5 web page only needs to do a small amount of compatibility work for Weibo, and it can enjoy the one-system light application service provided by the official client, thereby providing users with a better experience
- • No authorization required . If the user accesses the application while logged in, the new framework will complete authorization by default and pass the access_token information to the access party.
- • More exposure opportunities. After the application is launched, it will appear on the Page page and the card of the Weibo feed stream. Support linkcard access for better display on Weibo.
- • During the development process, unified the access methods and parameters. Whether it is the Web version or the H5 version, the parameters received by the client are the same, and the access methods are basically the same. The application can distinguish whether it is the Web version or the H5 version through the browser userAgent.
- • Supports access to Weibo payment and completes product payment with one click.
- •[Web version]New application sharing and likes. Share the application directly to Weibo and generate card display for rapid dissemination.
- •[Web version]Supports non-login access to the application. You can also browse the application without logging in to Weibo. When necessary, invoke the login overlay through our JS client.
- •[Web version]App width resized to 940 px. The original 760px is not supported, and the original 950px is changed to 940px.
Light application scenarios
Some light applications, the more prominent ones are the inner pages, such as movies and books. You may want to directly display them in the Weibo stream When you see a card, click on the card to go directly to the product details page and purchase directly; Can play;
or both, both are acceptable.
Application Example
Online 4S store (Web & H5 version are both accessible):
##H5 version:
Youbao, AiyingkeLight application development process
The development of light applications is roughly divided into four steps:- • Become a Weibo developer• Application creation• Application development• Application review and launch
As shown in the figure below:
Join a Weibo developer
The first step in developing light applications is to become a Weibo company developer. If you are not a Weibo developer yet, please log in to the Weibo open platform first, and then enter the management center to complete the developer's basic information and identity authentication.In the basic information section, directly select the developer type as company and complete the form. After completing the filling, you can start creating the application through email verification.
Passing the identity authentication will facilitate the review of the application and the application for various permissions. Please fill it out carefully.
Individual developer upgraded to company developer
If you are already an individual developer, you need to enter the edit developer information page, reselect the developer type as company, and then save the information. Can.
Application creation
On the light application introduction page, click the Create Application button to enter the creation form filling page.
After completing the form filling, it will automatically jump to the application console. In the application control The platform can further improve the basic information of the application.
Edit application information
Open application information->Basic information to view the basic data of the application. Click Edit to make changes.
Test address (Web version, H5 version)
Open application information->Test information, you can see the test address of the application. Because the application has not yet passed the review and been launched to the App Plaza, this address is only accessible to the developer himself.
If you need other Weibo users to browse, you can add the Weibo user to the test account. You can add up to 15 people per app test account.
After the application passes the copywriting review and is launched on the square, the test account will automatically expire.
Upgrade to light application
Upgrade mainly refers to the original enterprise application, site application or personal version that has been successfully created Page application, upgraded to light application.
Since the appkey of the application has been created, the upgrade mainly includes two aspects: First, the Weibo open platform background upgrades the appkey to a light application type; second, the application changes the old parameters it originally received to new parameters. .