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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:59:16+00:00 2026-06-11T08:59:16+00:00

Hi I was reading and reading tutorials here on http://developers.facebook.com/ . About Login in

  • 0

Hi I was reading and reading tutorials here on http://developers.facebook.com/ .

About Login in to Facebook and publish Feed from application, my problem is I cannot login to Facebook at all.

And I can’t get it work. It sucks, annoying, and there is no clear tutorial/explanation about this.

Im trying to login from my app, when safari open and then the URL were like going nuts
blinking..

And I dont get an error, why?

Is there any CLEAR tutorial About Loging in?

it works GREAT on simulator, but not on the Device.

Im on Xcode 4.5 beta right now, but it also doesn’t work on 4.4.

I need Help!

[CLOSED]

EDIT: I fixed it! I was so stupid… I was struggling in seven days just to login to FB,
then i changed ( Cookies Allowed on the device ), Everything worked PERFECT!

Damn that device just needed some cookies.. Lol

  • 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-06-11T08:59:17+00:00Added an answer on June 11, 2026 at 8:59 am

    I just updated to the recent FB sdk about 2 weeks ago. Here’s the way I’ve done it:

    //FB recommends to put these two in the app delegate in their sample apps but you can place them other places
    - (BOOL)openSessionWithAllowLoginUI:(BOOL)allowLoginUI {
        NSArray *permissions = [NSArray arrayWithObjects:@"publish_actions", nil];
        return [FBSession openActiveSessionWithPermissions:permissions
                                              allowLoginUI:allowLoginUI
                                         completionHandler:^(FBSession *session, FBSessionState state, NSError *error) {
                                             NSLog((@"session.state is %d",session.state));
                                             if(session.state==513){
                                                 [AppPrefererences sharedAppPrefererences].faceBookLoggedIn=YES;
                                                 NSLog((@"facebookLogin pref has been set to yes from inside appDelegate"));
                                             }
                                             else{
                                                 [AppPrefererences sharedAppPrefererences].faceBookLoggedIn=NO;
                                             }
                                         }];
    }
    
    - (BOOL)application:(UIApplication *)application
                openURL:(NSURL *)url
      sourceApplication:(NSString *)sourceApplication
             annotation:(id)annotation {
        // FBSample logic
        // We need to handle URLs by passing them to FBSession in order for SSO authentication
        // to work.
        return [FBSession.activeSession handleOpenURL:url];
    }
    
    
        //Then whereever you want to initiate the log in (i use mine in a tableView)
          AppDelegate  *appDelegate =(AppDelegate*) [[UIApplication sharedApplication]delegate];
    
     if (![appDelegate openSessionWithAllowLoginUI:NO]) {
                        [appDelegate openSessionWithAllowLoginUI:YES];
                        facebookLoginLabel.text=@"Facebook Log Out";
                        [AppPrefererences sharedAppPrefererences].faceBookEnabled=YES;
                    }
                    else{
                        facebookLoginLabel.text=@"Facebook Log In";
                        [AppPrefererences sharedAppPrefererences].faceBookLoggedIn=NO;
                        [FBSession.activeSession closeAndClearTokenInformation];                    
                    }
    

    And then whererever you want to post you do this:

      [FBRequestConnection startForPostStatusUpdate:@"any thing you want to post"
                                        completionHandler:^(FBRequestConnection *connection, id result, NSError *error){}];
    

    And, also don’t forget to set the FBLoginViewDelegate

    Let me know if you have any questions! Hope it helps!

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

Sidebar

Related Questions

well I'm reading the fb connect tutorial here http://wiki.developers.facebook.com/index.php/Facebook_Connect_Tutorial1 The problem I'm having is
So I am a beginner and I was reading a tutorial here: http://www.freewebmasterhelp.com/tutorials/phpmysql/4 on
I was reading over the tutorial here: http://www.1keydata.com/sql/sql-running-totals.html and it all made sense until
I'm using a chart taken from here http://writerbay.wordpress.com/2011/03/12/android-tutorial-displaying-chart-on-android/#comment-54 to draw a graph in android.
I've been reading some async articles here: http://www.asp.net/web-forms/tutorials/aspnet-45/using-asynchronous-methods-in-aspnet-45 and the author says : When
lets say i created a virtualenv called venv (virtualenv venv) From reading tutorials, i
I am starting to learn AspectJ. From reading tutorials, I know that I can
I'm reading some tutorials now about jQuery.. function creating,plugin creation etc. but these tutorials
I was reading up on this javascript tutorial: http://www.switchonthecode.com/tutor...ccordion-menus Basically, it shows you how
After searching a lot, reading every tutorials I've found and asking some questions here,

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.