Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6996247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:07:54+00:00 2026-05-27T20:07:54+00:00

I was going through Facebook’s authentication mechanism. and understood the client side, server side

  • 0

I was going through Facebook’s authentication mechanism.
and understood the client side, server side and desktop app processes.

But I couldn’t understand the iOS tutorial.
https://developers.facebook.com/docs/mobile/ios/build/

Where it talks about How Facebook SDK for iOS gracefully falls back to diff ways of authentication depending upon whats installed on users phone.

From the tutorial I understood that,

  1. The API checks if facebook app is installed or not and if its
    there..it opens it and entire login process n pemission giving is
    done there and then the app redirects back to our app passing the
    authorization token, expiration, and any other parameters the
    Facebook OAuth server may return.

  2. If FB app is not installed, Safari is opened and process happens
    there and access token is taken out of its cookies once it redirects
    back to the app.

  3. And if iOS doesnt support multitasking, we cant open safari or any
    other app along with it,then it opens a UIWebView and carry on and
    access the token from its urlbar’s fragment area after #.

I got the third way which is what we do with a desktop app in .NET or air.

Can anyone explain the first n second ways ?

How can one app redirect the control to the other and how it can pass data to it.
and regarding the second way, how can the app read Safari’s cookies ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:07:55+00:00Added an answer on May 27, 2026 at 8:07 pm

    It does it by opening a URL using UIApplication – openURL: and that URL will check if the facebook app is installed by using their custom URL ( http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html ). When that happens facebook then redirects back to your app using the same mechanism.

    Read the documentation under //// private here: https://github.com/facebook/facebook-ios-sdk/blob/master/src/Facebook.m

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Going through the microsoft authentication tutorial listed here they have you create a master
Just going through the sample Scala code on Scala website, but encountered an annoying
I've been going through the tutorial for the .NET Facebook SDK on codeplex .
I am going to be implementing the facebook application into my project, but I've
I am sharing some msg through twitter,Facebook... through Action_Send intent.But what i dont want
I've been going through FB docs but I think I am totally lost now.
Going through some of my older Delphi projects and upgrading them to D2009, as
Going through Javascript documentation, I found the following two functions on a Javascript object
While going through university and from following the development of SO, I've heard a
After going through the Appendix A, C# Coding Style Conventions of the great book

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.