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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:46:06+00:00 2026-05-24T22:46:06+00:00

In my app I have a button that allows you to post to Facebook.

  • 0

In my app I have a button that allows you to post to Facebook. If you have not yet allowed the app access to your Facebook, you must login.

        [fbGraph authenticateUserWithCallbackObject:self andSelector:@selector(doThePost) andExtendedPermissions:@"publish_stream"];

This line above is what brings up the web view with the Facebook login. My app is landscape only though, and the login page loads in portrait. When the text is tapped, the keyboard loads in landscape and covers the page. Also, if you hit “Done” on the keyboard you are stuck in the web view (I can’t get a back button on it).

I haven’t done much with Facebook in apps, does anyone have any suggestions? Thanks!

Here is an image
http://cl.ly/1X413w2G1S3t102T1R0o

  • 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-24T22:46:07+00:00Added an answer on May 24, 2026 at 10:46 pm

    this link might hopefully help you get started on a fix for the orientation problem.

    In regards to adding a back/dismiss button the following might be of some use:

    - (void)webViewDidFinishLoad:(UIWebView *)_webView {
    
    
    if (hasHitFinishCallback == NO)
    {
        //add our own cancel button
        UIButton *cancelButton = [UIButton buttonWithType:UIButtonTypeCustom];
        [cancelButton setImage:[UIImage imageNamed:@"btn_cancel.png"] forState:UIControlStateNormal];
        [cancelButton setFrame:CGRectMake(240, 7, 57, 31)];
        [cancelButton addTarget:self action:@selector(dismissAuthenticationView:) forControlEvents:UIControlEventTouchUpInside];
        [webView addSubview:cancelButton];
        [webView bringSubviewToFront:cancelButton];
    
        hasHitFinishCallback = YES;
    }
    
    }
    
    - (void)dismissAuthenticationView:(id)sender
    {
        [webView removeFromSuperview];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple app that allows the user to push a button that
I have a button that launches the google maps app on my device via
I'm now testing GKPeerPickerController. I have a simple app that just have a button
I have an app that when I click a button loads a new TabItem
For example I have an app that counts how many time Camera button was
I have a .NET application that contains a checkbox (System.Windows.Forms.Checkbox). This component (WindowsForms10.BUTTON.app.0.378734a1) is
Hello StackOverflow'ers, I have a (flex) app that, on the click of a button,
I have developed an app that allows the user to fill out text fields
We have a desktop app that allows users to fill in a questionnaire. For
I have a CMS app that allows custom fields to be added. One type

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.