How to get notified the user shared something using ShareKit?

I'm using ShareKit to allow users to share stuff from my app to Twitter and Facebook. After the user shared the object, I would like to get my app notified about it, in order to pass an API call to my server - so it can handle notifying the users "your friend just shared something, look it up!".

Facebook SDK allows to get a callback with information like the post ID. I'm wondering how to achieve something like this when using ShareKit 2.0 - should I override some methods of the Facebook and Twitter sharers?

Answers


All SHKSharers provide a delegate mechanism that you can use to be notified of the success / failure of the share (or authorisation). Check the superclass docs / .h file.


Need Your Help

Overhead of creating a new class

c++ class optimization int

If I have a class defined as such:

dom4j XPath not node-type

java xpath dom4j

I try to get just a part of an attribute (could also be a part of an element), but no luck so far. The exception I get is "Invalid XPath expression: //@att/tokenize(., ' ')[.][position() = 1] Expec...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.