Facebook connection and creating rooms not working together in unity PUNv2

Options
I'm trying to connect facebook and creating rooms as 2 options to play a multiplayer game. the issue is when I connect to facebook account I cant use creating rooms options.. it is always disconnected from the server...what I mean is OnConnectedToMaster never gets called when logged in to fb account. If logged out then it works fine

Any views where I'm going wrong

I have used the same code for fb authentication as mentioned here: https://doc.photonengine.com/en-us/pun/current/connection-and-authentication/authentication/pun-and-facebook-custom-authentication#pun_setup