I’m creating a html5 application using PhoneGap..i want to integrate facebook into my application. what i want to do is,i want the users to login into my application with Facebook, but after authentication i need to get the details of the particular user who has logged-in .eg.profile name,email id,date of birth,place,address,profile pic etc…is there any particular API which provides all these details as response, when we pass the USERNAME AND PASSWORD.please suggest me a way..or tel me if it is possible…..
I’m creating a html5 application using PhoneGap..i want to integrate facebook into my application.
Share
PhoneGap is just a mobile platform wrapper around HTML/other web formats. So since the tools are easily available to achieve this using them, PhoneGap is no exception. Learn and implement the Facebook Graph API, which is Facebook’s total solution for integrating FB into your app. Once a user has logged in with the OAuth 2.0 authentication, the Graph API access token allows you to grab all information (within the user’s set access rights) required!
Once you’re familiar with how the Graph API works, start with the extensive guide to implementing user login here, and after that grabbing profile information will be simple!