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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:06:13+00:00 2026-05-31T07:06:13+00:00

When the user posts to FB or Twitter I want to know that the

  • 0

When the user posts to FB or Twitter I want to know that the share completed, or the view was dismissed with an x.

Does anyone know if there is a delegate method built into ShareKit or if I have to write my own methods into it?

Right now I’m using the sharers directly, but I may switch to use the sharekit popup. I’m just using the two line code:

    SHKItem *item = [SHKItem text:someText];
    [SHKFacebook shareItem:item];
  • 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-31T07:06:15+00:00Added an answer on May 31, 2026 at 7:06 am

    I faced your problem and came out with a solution, perhaps not the prettiest one, but it does solve the problem. There is a delagate called SHKSharerDelegate, which can be used with sharers for this purpouse, so if you are calling sharers directly from your code (no action sheet), then you should do something like this:

    NSString* mySharerClassName = @"SHKFacebook";
    SHKSharer* classItem = (SHKSharer*)[[NSClassFromString(mySharerClassName) alloc] init];
    Class sharerClass = [classItem class];
    
    if ( [sharerClass canShare] ){
        [classItem performSelector: @selector(setItem:) withObject: item];
        //Assuming that the class where this code is conforms to the SHKSharerDelegate protocol
        [classItem performSelector: @selector(setShareDelegate:) withObject: self];
        [classItem performSelector: @selector(send)];
    }
    

    If you have to use the ActionSheet, it gets a little trickier, mostly because there is no support for it, just go to the ActionSheet header file (ShareKit/UI/SHKActionSheet.h) and add a delegate property:

    @property (nonatomic, retain) id sharerDelegate;
    

    Notice that is not id<SHKSharerDelegate>, try doing that and you’ll experience a whole lot of pain. That’s why I said that is not the prettiest one. Once you added and synthetized the property, look for this method:

    - (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated
    

    And where it says

    id sharer = [sharers objectAtIndex:buttonIndex];
    [NSClassFromString(sharer) performSelector:@selector(shareItem:) withObject:item];
    

    Change it for

    id sharer = [sharers objectAtIndex:buttonIndex];
    
    if ( sharerDelegate == nil ){
        [NSClassFromString(sharer) performSelector:@selector(shareItem:) withObject:item];
    }else{
        SHKSharer* classItem = [[NSClassFromString(sharer) alloc] init];
        [classItem performSelector: @selector(setItem:) withObject: item];
        [classItem performSelector: @selector(setShareDelegate:) withObject: sharerDelegate];
        [classItem performSelector: @selector(send)];
    }
    

    If you are more interested in this, I’ll try to make a blog post soon and edit the answer to reference it.
    Hope I can still help somebody!

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

Sidebar

Related Questions

I want to implement functionality which let user share posts by other users similar
I want to post on twitter wall but don't want that user can edit
By @user.posts , I can see there is a post with :unfinished status. But
So I have a User model that :has_many other models like Documents, Videos, Posts
Is it possible to simply get the twitter posts done by a particular user
I want to give the user the possibility to share a Image and a
What's the best (simple for user) Java API for Twitter connect. I just want
Basically, when a user (any of them) posts on my site, I want it
I have an application that posts to multiple Twitter accounts by storing an array
An user posts this article about how to use HttpResponse.Filter to compress large amounts

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.