How can I dismiss FBWebDialogs?

349 Views Asked by At

I'm working on one Touch app, in this i have to navigate to one viewController when user presses the home button, irrespective to what ever viewController user is currently seeing. The problem is , if i open up FBWebDialogs using 'presentFeedDialogModallyWithSession', its not removed from the view.

i already tried to remove all views from the super view, pop to rootviewcontroller and dismissModalViewController but still it stays on screen.

any one has any idea how can I programmatically close it?

2

There are 2 best solutions below

2
On
0
On

You have to use the following:

[self dismissViewControllerAnimated:YES completion:nil];