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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:58:46+00:00 2026-05-25T02:58:46+00:00

I am attempting to add facebook integration to my ios game built using Cocos2D.

  • 0

I am attempting to add facebook integration to my ios game built using Cocos2D. I initially just made the CCLayer object (subclass of NSObject) a FBRequestDelegate, FBDialogDelegate, and FBSessionDelegate. Then I created a facebook object with

fb_permissions =  [[NSArray arrayWithObjects:
                        @"read_stream", @"publish_stream", @"offline_access",nil] retain];

facebook = [[Facebook alloc] initWithAppId:kAppId
                                   andDelegate:self];

next I call

[facebook authorize:fb_permissions];

when the user pushes a button. It all works fine, goes to the facebook login page, correctly authorizes my application etc. Once it returns execution to my game, I expected the

- (void)fbDidLogin

method to be called, but it doesn’t seem to be. I’m a little confused and just wondering if I’ve gone about this wrong? Should I implement my facebook sdk stuff in my root viewcontroller? ie. make my viewcontroller the FB delegate?

Is it that I’m missing a call to handleOpenURL? Which appears to be depracated? I’m having trouble locating decent documentation on this particular issue…

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-25T02:58:47+00:00Added an answer on May 25, 2026 at 2:58 am

    I think you will need to implement handleOpenURL in your App Delegate:

    - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
    
        return [facebook handleOpenURL:url]; 
    }
    

    Edit: I see that execution returns to your game, so you may have already completed the following:

    You will also need to edit your .plist file to handle the return from the authorization page. You will add an entry to MyApp-info.plist under

    Information Property List->URL Types->Item 0->URL Schemes->Item 0 = "fbYOUR_APP_ID"
    

    Follow the instructions at the end of Step 6 here: http://developers.facebook.com/docs/guides/mobile/#ios

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

Sidebar

Related Questions

I am attempting add some tests to an existing QT GUI application using QTest.
I'm attempting to add searching support for my PHP web app using MySQL's FULLTEXT
I'm attempting to add a subscription to Google Reader, using it's API, however I'm
I am attempting to add section 508 (Accessibility) compliance to an application built on
i'm attempting to add my own continuous pitch modulation (vibrato) to my OpenAL object
When attempting to add secure entries into the keychain using: SecItemUpdate((CFDictionaryRef)queryKeychain, (CFDictionaryRef)updateAttributes); I'm getting
I am attempting to add a Full Screen option to my Qt (using PyQt)
So the situation is this: attempting to add a dropdown box using the jquery.multiselect
When attempting to add permissions to an Amazon SNS topic using the AWS SDK
I am attempting add a tableadapter to a stored procedure in my SQL Server

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.