diff --git a/django_facebook/api.py b/django_facebook/api.py index 89769380..e574bbc5 100644 --- a/django_facebook/api.py +++ b/django_facebook/api.py @@ -464,7 +464,7 @@ def _retrieve_facebook_username(cls, facebook_data): # start by checking the public profile link (your facebook username) link = facebook_data.get('link') if link: - username = link.split('/')[-1] + username = link.rstrip('/').split('/')[-1] username = cls._make_username(username) if username and 'profilephp' in username: username = None