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 6585623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:41:12+00:00 2026-05-25T16:41:12+00:00

I have a project in XCode, which contains two targets, one at a lite

  • 0

I have a project in XCode, which contains two targets, one at a lite version and the other to the full version. In both cases it requires the user to apply for permission to publish to Facebook.Both versions handle the same consumption Facebook ID.

In the full version opens a window asking for authorization of Facebook and if you authorize it, returns to the application whose I’m developing.

The Lite version is where the problem arises, it calls the authorization request window on Facebook, and if you press Authorize application does not return to the Lite app.

In both cases, the code is:

BOOL didOpenOtherApp = NO;
UIDevice *device = [UIDevice currentDevice];
if ([device respondsToSelector:@selector(isMultitaskingSupported)] && [device 
      isMultitaskingSupported]) {
if (tryFBAppAuth) {
  NSString *fbAppUrl = [FBRequest serializeURL:kFBAppAuthURL params:params];
  didOpenOtherApp = [[UIApplication sharedApplication] openURL:[NSURL URLWithString:fbAppUrl]];
}
if (trySafariAuth && !didOpenOtherApp) {
  NSString *nextUrl = [NSString stringWithFormat:@"fb%@://authorize", _appId];
  [params setValue:nextUrl forKey:@"redirect_uri"];

  NSString *fbAppUrl = [FBRequest serializeURL:loginDialogURL params:params];
  didOpenOtherApp = [[UIApplication sharedApplication] openURL:[NSURL URLWithString:fbAppUrl]];
}}

Thanks

  • 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-25T16:41:13+00:00Added an answer on May 25, 2026 at 4:41 pm

    I’ve got the same problem but i’ve solved using the Sharekit.. It’s fantastic because you can share almost everywhere in just few lines of code and it’s all done, this will make all you need for you..

    Facebook, Twitter, Delicious, Instagram, Evernote and other services are already supported and if you don’t care about this services, well, you can delete this file and the framework will work the same. Isn’t it enough? You can make your own design with pre-imposted file in the framework to make this work the best with your app design..

    Hope it helps!

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

Sidebar

Related Questions

I have two cocoa-touch apps in one Xcode project. Xcode gives me iPhone/iPad related
I have an xcode project which has 2 classes - Stem & Player, I'm
I have an xcode project which crashes xcode every time it's opened. Xcode says
I have an Xcode project which builds a Cocoa desktop Browser application. My Browser
I have a macruby project in xcode, in which I want to replace all
If I have a directory in my Xcode project (not a Group), which is
Using the Python templates for Xcode, I have a simple project running on one
I was given a project folder which contains an Xcode project along with all
I have an Xcode project which basically loads and parses a xml file which
I have a problem with an Xcode project which has a path of /users/me/blah

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.