Open Facebook messenger from hotspot after login

Hi everyone.
I’m is developers and i have tools manage splash page with php. My customer want a feature after login with hotspot mobile phone will open facebook messenger application automatic (“http://m.me/MyPage”).
I will try window.location = “http://m.me/MyPage”. After redirect we have button open app but when i click button a error popup showed with message “hotspot login cannot open the page because it cannot redirect to locations starting with fb-messenger-public:”

The iOS hotspot login page is presented in a modified browser window that for security reasons does not support redirecting to app protocol handlers. Perhaps try directing to a web based version of messenger, since you have no guarantees anyone even has it installed.

If customer touch to link. app will open but us javascript => can’t do this