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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:51:39+00:00 2026-05-26T01:51:39+00:00

I sharing message in Facebook by integrating sharekit in my iPhone application.I have written

  • 0

I sharing message in Facebook by integrating sharekit in my iPhone application.I have written the method facebookButtonPressed which I am calling on tapping one button.
First time when facebook screen is appearing its asking for authentication in Facebook . I have given userid and password of my Facebook existing account and tapped for login. Now the facebook authentication screen disappeared.Now again I tapped the button to call the methoed facebookButtonPressed,then I got the message sharing screen.
I don’t want to tap twice to get the message sharing screen.If any one has already solved this issue please help me.

-(void)facebookButtonPressed{
    NSString* body = @"test body";
    SHKSharer *fb = [[SHKFacebook alloc] init];
    SHKItem *item = [[SHKItem alloc] init];
    item.shareType = SHKShareTypeText;
    item.text = [body length]>140?[body substringToIndex:139]:body;
    fb.item = item;
    if(![fb isAuthorized])
    [fb authorize];
    [fb tryToSend];
}
  • 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-26T01:51:40+00:00Added an answer on May 26, 2026 at 1:51 am

    Try the below code, there will be action sheet to select how to share,you need to select Facebook.

    NSString* body = @"test body";
    SHKItem *item = [SHKItem text:body];
    SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item]; 
    [actionSheet showFromToolbar:self.navigationController.toolbar];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on Text Sharing on From my Android Application . I have
I have a Java web application which stores some data in the session. The
I'm trying to implement the functionality of sharing stuff on Facebook in my iPhone
I have Windows File sharing enabled on an OS X 10.4 computer. It's accessible
While creating sharing links for facebook, you can personalize a sharing link by doing
I have been sharing database variables using the following code: Namespace DataAccessVariables Public Class
I am using android-facebook sdk to share to facebook. Sharing works fine. But, i
I have created an app which starts with a login page, after entering some
I'm building a message service for an application. Users are identified by an email
I am using java message digest to create MD5 hash, which is used for

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.