0

I want to customize the Facebook share button functionality and want to push a new viewController as soon as user share or post on the wall using iphone. I know it is possible, we need to write just 2 or 3 line of code of javaScript but not getting the code. I am using Sharekit in my app. anyone know how to do this?

Thanks

2 Answers2

0

You can detect the post send or shared on user's wall by FBDialogDelegate methods. In your project Expand Sharekit > Sharers > Services > Facebook > SHKFacebook.m and find the method

- (void)dialogDidSucceed:(FBDialog*)dialog This method will call when user post or share on wall.

Dhaval Panchal
  • 2,529
  • 1
  • 25
  • 36
0

You can listen to notifications, which are issued by default during ShareKit workflow. The benefit is, that you do not need to change ShareKit's code.

For preview of notifications sent by ShareKit, look at SHKSharer.m, delegate notification section.

The notifications to listen to are for example

@"SHKSendDidStartNotification"

or

@"SHKSendDidFinish"

etc.

Vilém Kurz
  • 3,401
  • 2
  • 34
  • 43