{% include 'hackathon/base.html' %}

Facebook API Usage Example


Basic User Info

User ID {{userInfo.id}}
First Name {{userInfo.first_name}}
Last Name {{userInfo.last_name}}
Gender {{userInfo.gender}}
Time Zone GMT{{userInfo.timezone}}
Profile {{userInfo.link}}

Every Facebook account basic information is available for all apps by default. In order to get more information about a user (such as likes, photos, status updates, etc.) you must submit a request to facebook which you will find in the Facebook app page. After gaining the desired permissions, you can call check_permissions(self, perm) to check if you gained permission from the user and request_permissions to request the permission from the user.