feinheit/django-facebook-graph — pull request #10 by schmidsi (2012-02-23 11:02:47+00:00)
Title: Rework in Admin / Auth / Points/Achievements

Admin:
Because we have now the structured organisation, its no longer required to have the admin configuration in the root and the FACEBOOK_ADMIN in settings.py because the facebook modules are activated granular. So the admin.py is removed and all code moved to the corresponding modules.

Auth:
Always update the user who is now authenticated. This caused some errors on pages, who get the friends of the users: if a facebook user was already created django side, because of a friendslookup, he wasn't updated if he startet to use the page himself. so there were no email or additional infos in the db although he gave the permissions.
Secondly: Some fixes, but I think, the whole auth backend needs a rework. Lets get inspired by other django-facebook libs

Points/Achievements:
Simply make them work with the structured approach. Mainly import errors.

General Slug discussion:
Slug creation should go like this:
1. if facebook provides a unique username, use this
2. if not, try to build something nice with first_name, last_name (depending on the object) and the unique id. f.e. { first_name }-{ last_name }-{ id }
3. defaulting to id