Search code examples
androidfacebookcookieswebviewfacebook-access-token

Use access token to create a facebook cookie?


I have an app which uses the Facebook SDK for various stuff (sharing, like etc).

My problem is that; inside my app, I also show an WebView which exposes a webpage with Facebook Comments (Social Plugin). My problem is that, a user which login to facebook using the Facebook SDK also has to login to facebook inside the WebView.

So my question is: Is there any way to use an access-token (or any other way) to create a facebook session cookie that I can set so that the user is also logged in to facebook inside the WebView?


Solution

  • No, you cannot use an access token to create an FB cookie. This is by design and is for user security.