Iphone facebook connect example calls safari. I don't want to use safari?

I'm not sure if this is kosher but I commented out lines 131-145 in Facebook. M to pop open a UIWebView instead of opening up the login screen in Safari. Seems to work fine for me.

1 For those with a newer version, to find the code @donkim is referring to search for BOOL didOpenOtherApp = NO; The useful part is the following if block. – Agos Oct 21 at 12:36.

4 To simplify the change, I just force trySafariAuth to NO in authorizeWithFBAppAuth:safariAuth. Works like a charm and keeps users in the app. – John M.P. Knox Feb 9 at 18:16.

Despite the fact that it open safari and that's ugly, you benefit from the SSO which is a great feature. If any other app is using FBConnect, you user will be automatically connected to yours. And if the facebook app is present, its even better, the login is done through the facebook app and no longer in safari.So I suggest you keep it that way!

I agree that the whole process should be a bit improved and at least not open a new safari tab every time you connect! Patience...

If user has Facebook application for iphone, then it won't open safari. It will open directly Facebook App.

The problem with all these solutions is you lose a consistent auth_token. So if you need to do manual graph requests later on in your code by passing the auth_token in the URL, you simply can't.

Set safariAuth:NO on self authorizeWithFBAppAuth:YES safariAuth:NO; (facebook. M:221).

I'm not sure if this is kosher but I commented out lines 131-145 in Facebook. M to pop open a UIWebView instead of opening up the login screen in Safari. Seems to work fine for me...

Donkim's suggestion above worked well for me using the 1/31/2011 commit of the SDK. Another option is to look for each call to "authorizeWithFBAppAuth:safariAuth:" in Facebook.m. You can change the second argument from YES to NO on lines 221, 267, and 274.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions