Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook iOS SDK - GitHub - Cannot switch back calling app

Tags:

facebook

According to the GitHub,

If the app is running in a version of iOS that supports multitasking, and if the device has the Facebook app of version 3.2.3 or greater installed, the SDK attempts to open the authorization dialog withing the Facebook app. After the user grants or declines the authorization, the Facebook app redirects back to the calling app, passing the authorization token, expiration, and any other parameters the Facebook OAuth server may return.*

My application calls authorize: permissions: delegate: and my application is suspended and Facebook application is launched and authorization is asked. After the user allow or disallow, the Facebook applications stayed on NEWS FEED (not returning to my application).

Questions:

  1. Is it possible to authorize or logged-in and returning to my application?
  2. How can my application check whether the authorization and logged-in is done and no need to re-do again?
like image 235
SkyEagle888 Avatar asked Feb 26 '26 08:02

SkyEagle888


1 Answers

I found this.

During single sign-on, the Facebook application isn't redirecting back to my application after a user authorizes it. What's wrong? Make sure you've edited your application's .plist file properly, so that your applicaition binds to the fb[appId]:// URL scheme (where "[appId]" is your Facebook application ID).

My Application can be switched :)

Thanks all

like image 126
SkyEagle888 Avatar answered Feb 28 '26 09:02

SkyEagle888



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!