Facebook for iOS

Ruchira More
3 min readJun 20, 2018

Hello friends,

As we all aware of Facebook breaking changes.

If you missed, please read on this link https://developers.facebook.com/docs/graph-api/changelog/breaking-changes/

Here, this time I was going with new updates with Facebook login. Decided to share some stuff here. Keeping crisp. Hope this is helpful for all.

Here we go for Facebook login for iOS. 👩‍💻

  1. Go to https://developers.facebook.com/
    Create new app or select existing one.
Facebook for iOS — Add new app
Facebook for iOS — Create App ID

2. Set up developer environment

Refer below links to use in your Facebook login demo app.

SDK with Cocoa-pods https://developers.facebook.com/docs/ios/componentsdks#cocoapods
or you can use SDK https://developers.facebook.com/docs/ios/componentsdks#downloadsdk

3. Register and configure your app with with Facebook

  • Add bundle identifier
  • Enable single sign-on for app
  • Add App details

I. Display name

II. Contact email

III. Category

IV. Privacy policy link. If you have your privacy policy link for your app then use that, else you can create free privacy policy link https://www.freeprivacypolicy.com

Click on free policy and create your custom policy. At the end you will get privacy policy link on your mail or contact number.

V. Add app icon

VI. Save changes

Facebook for iOS — App Details

4. Add Facebook login to your project

Refer : https://developers.facebook.com/docs/facebook-login/ios/

Refer : https://developers.facebook.com/docs/swift/login

Oh‍h 🤦‍ ️still something wrong. App not set up error.

Facebook for iOS — App not setup error

When create new facebook app, it is by default only visible to you means user’s won’t be able to use it for social login. For avoid this make app public. How??🤔

Facebook for iOS — status app live

After Facebook Login, app can ask for permissions to access a person’s data or perform actions on their behalf. If app asks for more than public_profile, email, user_friends, Facebook must review it before you release it.

5. Testing a Login Flow

Refer : https://developers.facebook.com/docs/apps/test-users/

  • Access Test User Management Tool

App Dashboard → Roles → Test User → Add

Facebook for iOS — Add test user
  • Change setting of App Restriction

Set Social discovery enable.

Add age restriction.

6. How to submit for login review?

Refer : https://developers.facebook.com/docs/facebook-login/review/how-to-submit

Like in short check below.

Add App Details like App Icon, Long Description, Privacy Policy.

Create Submission

  1. Go to app dashboard à Click on App Review à Click start submission
  2. Select items you wish to submit for review à click Add (x) Items
  3. Add notes for Each Permission
  4. Complete submission form
  5. Submit for review

Submission’s latest results will also be available in the App Review page.

Facebook for iOS — App review alert

Thanks for reading. Welcome for suggestions. Let us know in the comments…

--

--

Ruchira More

Software Developer, Writing Tech+Life and much in between | Grow With Flow… Love Life…😊