I am using phonegap facebook plugin.
When I tried to login from my app, fbAppAuth dialog and safariAuth occurs at the same time.
So, although I finished safariAuth , fbAppAuth dialog appears. I need to turn off one of them
and found solution from below link.
How to authorize user through a DIALOG with the NEW Facebook Connect iOS API?
But, I need to modify facebook.m file which is I don’t have. I am using facebooksdk.framework 3.1
and there is only facebook.h file but no facebook.m file.
How can I find facebook.m file from my project? or…. is it something I should download?
any help will be appreciated..
In FBSession.h the enum
FBSessionLoginBehavioris what you’re looking for.Replace all occurrences of the other values with
FBSessionLoginBehaviorForcingWebViewto force FB to open a WebView.This took me hours to figure out. I hope this helps you.