Authorization through Chinese social networks

  • Tutorial
Any normal site / application now allows you to register using third-party accounts. And if there is more than enough information on English / Russian-speaking, then on Chinese (in the Russian segment of the Internet) - the cat cried. Meanwhile, in addition to being about 700 million Internet users, there are also more than 5 million Chinese who visited Russia in 2014 and about 500 thousand Chinese who remained in Russia for temporary / permanent residence - primarily students. Since the integration of the Chinese into the local community always takes place with a scratch, they prefer to use software familiar from childhood - such as the QQ Internet messenger.

In this article, I would like to highlight the process of integrating login via QQ in mobile applications and on websites. It is very simple. I’ll tell you with an example of our application for the Android platform:



The first thing we need is a basic QQ account. Registering it as simple as possible - click on the link , fill in all the fields - done. There’s nothing to dwell on.
Second, you will need to upgrade your base account to a developer account. We go to the site and click on the 登陆 button (top right, where we log in under our account), after which we go to the control center.



Here we need to fill out information about ourselves. Foreigners are all very well allowed if there is a friend in China - it’s easier to register for him, it will be easier to communicate with technical support, if not, that's okay too, but you will most likely have to use an online translator to communicate. If you still want to register as a developer from China, you will need a virtual Chinese phone number, you can do it here:
www.wo-call.com (then you will need to specify the province of Shijiazhuang as the address), or
www.jego.me (Shanghai )
I advise you to still be truthful - they will then require your passport, and honesty has always been a virtue.



After you are approved (in QQ, there aren’t such nasty bugs as, for example, in Weibo, they usually don’t find fault), the developer panel will become available to you. We need the "Create Application" button.



After that, there will be a normal application creation process. The main thing, do not forget to select the “free” option, since accepting payments from Chinese users is a separate big topic, it is not immediately available, if it is interesting, I will tell in the next article. Nobody finds fault with free ones. Accordingly, do not forget to prepare apk if it is an Android application, a link to the Appstore, if it is iOS, or your web application (according to what you chose).



After the application passes approval and is released, it will automatically appear in the QQ web store in their QZone social network (if it is a web application), their android market (if it is an Android application). How to connect to their advertising network and earn advertising revenue, how to integrate their cloud services, promo opportunities, etc. - The topic is too extensive to dwell on.



We are now only interested in login through their application. For this we need the App ID and App Key. We see it after clicking on the name of the application.



In principle, everything, the job is done. Now all you have to do is add a couple lines of code to your application.
The full SDK for your platform can be downloaded from the link.
A full description of adding a login via QQ is also located at the link.

1) turn on this link and fill the questionnaire to the opportunity to login application through QQ
2) link download the login button image
3) Adding Build Path and configure androidmanifest
4) Adding code callback
5) Obtain Access_token
6) Get user OpenID
7) In the case of If necessary, we get user data , set up news sharing in QZone, etc.

That's all. At first glance it’s difficult, at the second - nowhere easier. Those technical terms that are in the descriptions are easily picked up by the Google translator, in more complex cases I recommend using thisvocabulary.

I hope at least someone came in handy.
UPD According to the requirements of the Ministry of Industry and Informatization, the site \ application \ game, if they contain the content listed below, will not be approved:
1) content of a sexual nature, incl. erotic. In the case of a body image, it should be covered below the neck and above the knees
2) in the case of images of the faces of a real person, written consent of the model
3) mentions and the presence of gambling, gambling, the possibility of withdrawing real money
4) images and information about medical products without relevant licenses
5) references and images of drugs, weapons and other illegal contents
6) other content contrary to the laws of the PRC.

Also popular now: