I made a script that checks if the currentUser is visitor or not, if they are a visitor I popup the LoginBox. If they are not I show the site.
Now when I tried it it works great, until one user clicked Facebook Login and they could see the whole site.
So my question is, what role does the Facebook logged in user get when they enter a site?
Facebook login in Wix is just like direct login to the site - depending on how you set up site members login (automatic user approval or approve each member request manually).
The point being is that we do not differentiate between site members of direct login and site member using Facebook login at this time.
That said, we are working on adding roles to site members. Can you elaborate what you expect to happen with Facebook login and roles?
Yoav, If you could just add a role to a site member so that you can assign it when you approve the member, that would work for me.
Also related but not exactly the same issue, I was wondering if it is possible to load a list of names and email addresses as “preapproved” this would be helpful for many organizations. I could load all my organization members into site members, then when they create a logon using the same email address then it automatically approved.
Hey
From my perspective I would like to be able to choose role when a new member signs up. Maybe I want them all to become site-members at first and then I want them to be upgraded to premium-members and then I want to setup page-by-page which role can see the page.
I would be awesome if strips where like sections so I could set roles that can view certain strips or if you are at it at element lever. Maybe a button should only be seen by site-members but not for visitors. This kind of possibilities would rock.
But the most important is to be able to add an unlimited set of roles that we can use in code to make behaviour on sites different.
You can wish for heaven but just to add a new role to my site and then setup pages to that role or query code and collections depending on roles would be awesome.
If you then make it possible to add subscriptions or in some way interact with payment gateways through WIX Code and upgrade users from one level to another that would expand WIX.
I am full with ideas from creating hundreds of sites using other platforms so just ask me and I will pop out different thoughts 
Hi,
We don’t support custom roles, but I think you can achieve that now with having your own users collection, and assigning the desired role to each user when he enters the site.
Anyway, if you haven’t done so yet, you can always submit a feature request and we’ll look into it 
I am famous in feature requests? Ha ha
Hey Andreas!
We’re currently looking into this topic. Would love to talk with you about it to understand your needs when it comes to roles & subscriptions.
I’m at: eyalbe@wix.com
Thanks!