Is it possible to use the built-in iOS 6 Facebook integration to get the user’s basic info (email address, birthday, etc)? All of the documentation/examples I have seen use the iOS 6 integration to simply open an SLComposeViewController.
Thank you for your time.
Please check out my sample project. It allows you to upload video to Facebook, but it also includes a method to get your info, you should look at the file
ViewController.m, the one noted “Native” in the tab controller.https://bitbucket.org/danielphillips/fb-video-upload
You will need to import the
SocialandAccountsframeworks to do what you want. You request access to the users Facebook account from theACAccountStore, if you are granted access, then you use this account to create anSLRequestwith the parameters you want, here you want the graph object “/me”.Properties:
Authenticate:
Get “me”: