ios - facebook sdk never returns to app in iOS5 -


i having facebook share option in project.i developing ios 5.the issue when control switches app facebook app , never comes app. have manually switch app. happens when first time install facebook app , later works fine , returns app fine. if delete facebook app , install again, same problem. have tried following methods.

+ (bool)openactivesessionwithreadpermissions:(nsarray*)readpermissions                                 allowloginui:(bool)allowloginui                            completionhandler:(fbsessionstatehandler)handler; + (bool)openactivesessionwithpublishpermissions:(nsarray*)publishpermissions                                 defaultaudience:(fbsessiondefaultaudience)defaultaudience                                    allowloginui:(bool)allowloginui                               completionhandler:(fbsessionstatehandler)handler; + (bool)openactivesessionwithpermissions:(nsarray*)permissions                             allowloginui:(bool)allowloginui                        completionhandler:(fbsessionstatehandler)handler 

don't forget set

-(bool)application:(uiapplication *)application openurl:(nsurl *)url sourceapplication: (nsstring *)sourceapplication annotation:(id)annotation {     return [fbsession.activesession handleopenurl:url]; } 

and url types in target settings (info tab) fbxxxxxx xxxxxx fb app id


Comments