<commit_before>Django Facebook by <NAME> (http://www.mellowmorning.com)
====

Login and registration functionality using the new facebook open graph api.
- Actually creates user models and profiles
- Robust facebook user data -> django account conversion

Requires:

    django registration
    django auth
    cjson
    
Implementation:

    Step 1 - Settings:
        Define the settings in django_facebook/settings.py in your settings.py file
        
    Step 2 - Url config:
        add 
        (r'^facebook/', include('django_facebook.urls')),
        to your global url file 
        
    Step 3 - Ensure the FB JS api is available on all pages you want to login
    [Facebook JS API](http://developers.facebook.com/docs/reference/javascript/)
    
    Step 4 - Template
    See examples/connect.html
    
    
[Facebook docs](http://developers.facebook.com/docs/)<commit_msg>added model instructions to readme<commit_after>Django Facebook by <NAME> (http://www.mellowmorning.com)
====

Login and registration functionality using the new facebook open graph api.
- Actually creates user models and profiles
- Robust facebook user data -> django account conversion

Requires:

    django registration
    django auth
    cjson
    
Implementation:

    Step 1 - Settings:
        Define the settings in django_facebook/settings.py in your settings.py file
        
    Step 2 - Url config:
        add 
        (r'^facebook/', include('django_facebook.urls')),
        to your global url file 
        
    Step 3 - Ensure the FB JS api is available on all pages you want to login
    [Facebook JS API](http://developers.facebook.com/docs/reference/javascript/)
    
    Step 4 - Update your models
        
        Add to your user profile model
        about_me = models.TextField(blank=True, null=True)
        facebook_id = models.IntegerField(blank=True, null=True)
        facebook_name = models.CharField(max_length=255, blank=True, null=True)
        facebook_profile_url = framework_fields.URLTextField(blank=True, null=True)
        website_url = framework_fields.URLTextField(blank=True, null=True)
        blog_url = framework_fields.URLTextField(blank=True, null=True)
        image = models.ImageField(blank=True, null=True)
        date_of_birth = models.DateField(blank=True, null=True)
    
    Step 5 - Template
    See examples/connect.html
    
    
[Facebook docs](http://developers.facebook.com/docs/)
{'fraction_non_alphanumeric': 0.0803357314148681, 'fraction_numerical': 0.004796163069544364, 'mean_word_length': 2.5911047345767577, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1000989', 'n_tokens_mistral': 730, 'n_tokens_neox': 662, 'n_words': 211}