I am working on a sample project, where I need to find Facebook account stored in settings app.I am using Facebook SDK
. I have tried using ACAccountStore
but it returns an empty NSArray
of accounts. Is this the right way or am I missing something.
After some investigation on Facebook SDK I found a solution. The path which I was following was different and the thing that I found after some investigation was different but a easy one. Facebook provides.
FacebookLoginView: Uses prebuilt ui components to authenticate user stored in Facebook app.
FBSession:Facebook login to your app using your own custom UI for the login and logout controls