- How can I get the Unionid from the openid?
Dear all, I have an Open Platform account. In the Open Platform, I have configured two components: * Website Application - To let users authorize my website from their desktop browsers using their WeChat account. This is an oauth2-based login that really fits what we look for. * Third-Party Platform - To be able to operate on behalf of an Official Account and send template messages. My web offers a service, so I want to send informational template messages to my users. For each logged user, I have both its openid (note this is specific to the website application) and its unionid. In order to send them a message, I need to figure out what its other openid is (the one specific to the third-party platform). How can I get this value? I know I can store a cache of all the followers of the authorizer Official Account, but let's say the Official Account authorizing my Third-Party has several millions of followers. I'd need to pre-store this huge list and then handle every follow/unfollow event, all of this just to be able to get an openid from a unionid. I am sure I'm missing something. Thank you!
2020-08-17 - Can I use qr-based login with an Official Account?
Hi, first of all, thanks for letting me be part of your community and sorry for not using Chinesse. I have an Official Account of type Service Account which is verified (WeChat Verification, with the orange tick in it). I have successfuly linked this Official Account with a Website App so that users are able to log in to my application just scanning a QR code. Now I wonder whether I can do that without a Website App (Open Platform), i.e. using the Official Account appId. I have tried it, but I get this error: [图片] For the scope parameter I am setting `snsapi_login`, as I did when using the WebsiteApp appId. Is it possible to use the qr-based login without a Website App (i.e. directly with an Official Account). If so, am I doing anything wrong? Again, thank you very much for your help!
2020-07-07