Authorize to Apple Music via facebook messenger

We're using https://developer.apple.com/documentation/musickitjs to authorize Apple music, on Desktop it opens a new window to authorize to apple.


But It's NOT working on mobile (both iOS & Android), probably because on mobile messenger it's not possible to allow opening of multiple windows.


Are we missing something here? Any workaround for it ?


Anyone done that ?


Replies

I'm having the same problem. I want to authorise users on a page but, if they visit in a browser that doesn't allow pop-ups (Facebook is the only one I've tested but can imagine the same issue on Twitter/IG), then my usual Apple login screen says ERROR_MISSING_PARAM (or something, I forget).


Is there a special way to log in on mobile?

Same problem here as well. If you attempt to authorize Apple Music in the Instagram in-app browser, you get an "ERROR_INSUFFICIENT_PARAMS" error page. You can verify this by visiting my IG profile (@nickelsbree), clicking the link in the bio, and then clicking "Pre-Add on Apple Music" twice.