Search code examples
iphoneiosfacebooksocial-framework

Login with Facebook using SocialFramework


I want perform a login using Facebook credential. This is possible using Facebook SDK with this step:

  1. Create a Facebook App on facebook.developer.com
  2. Import Facebook SDK in Xcode
  3. Use Facebook SDK to perform login (this action open Facebook application on iPhone, and after it re-opens my application)

I would avoid open Facebook app and perform login inside my app, like Pinterest.

Using SocialFramework is it possible ?

Thanks


Solution

  • Yes, it is possible. The latest Facebook SDK logs in using the FB account defined in system settings if available and falls back to Facebook app and/or website if not.