I'm not 100% sure I know what you're asking. You do or don't want your facebook user's to be admins? I'm assuming don't but your app is forcing them into an admin role because you base who's admin and who isn't off the user id? Am I getting that right?
So short answer; yes, you can do whatever you want with CakePHP. I would first suggest not tying your admin roles to a specific user id's. Rather create an admin group that users belongTo. That way you'd be able to add/remove users/facebook-users as admins as you see fit. Shameless plug: if you're looking for a full featured Facebook plugin (with Facebook connect), I've written one here; http://www.webtechnick.com/blogs/view/229/CakePHP_Facebook_Plugin_Auth_Facebook_and_more Hope That Helps, Nick On Mar 23, 12:58 pm, Sergey Zarovski <zorro1...@gmail.com> wrote: > Hey guys, > I have following trouble - I need to let users to login using their > facebook account, but these users are going to be admins. Site was > build using Cake and all stuff mainly works like this -> user(admin) > logs and script catches id and uses it to show different content (site > is like multiuser-CMS, but have global admin). So I can`t change ids > to facebook ids. > > I have facebook field in db relative to each user. So my idea as to > check when user logs using their facebook login if their facebook_id > exists in 'users' table and then if yes set user as logged and use id > that is relative for id. > > I`m stuck on that. Any help will be appreciated. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.