I am using FB Single sign on for my iphone app.
I need to send friend request to a person on facebook through my Iphone app…
As there is no add friend dialog available for iphone..So I am opening in WebView.
If My iphone is non multitasking ..then it pop ups d FB login dialog during login time and
there is no problem in webview…
If its multi tasking..Then i either goes to FB App or to Safari..but in this case when I open FB page in webview..It asks for the credential again..
Is there any way to avoid this problem?
I am using FB Single sign on for my iphone app. I need to
Share
I am not sure if you are already doing this. But what you need to be doing is to store the accessToken that you get from FB in the phone. Later on whenever you open the app, it should be checking for this token and based on it take an action. This is pretty clear in the docs
So essentially you need to be checking for the “accessToken/secret key” before you open the browser view. In the brower view you will pass this accessToken. Take a look at this blog post to get a better understanding of this.
Also to open up the Dialog try using the methods available in Facebook.h