# Get current avatar def get_current_avatar(user_id, access_token): graph = GraphAPI(access_token) user = graph.get_object(id=user_id) return user['profile_picture']

Always respect a website's robots.txt , Terms of Service, and Content-Security-Policy . This script is intended for and local testing only .

Before diving into the script, make sure you have: