Problem: Viewing a public Facebook profile without being authenticated into Facebook shows a bare-bones profile. I have the users access_token. Is there any way to use the access_token to show the user a profile as if they were authenticated, or authenticate them behind the scenes before sending them to the profile page in order to see the full profile?
Specifically, I'm loading a Facebook profile in a UiWebView, which does not have access to the cookie pool of Safari, and so the user is not able to see the full profile. The user has already authenticated with my app, and so I have their access token, which I'm hoping I can use without forcing them to re-authenticate.
I know this is somehow possible because the Foursquare iPhone app accomplishes it. If you look at another users Facebook profile, you are able to see the full profile as if you were logged in. Next step is to sniff the traffic to try to figure it out, but wanted to see if there was an obvious solution I was missing first.
Turns out this is only possible if you had logged into FB in a UIWebView of that particular application at some point in the past. Once you do that, it caches your credentials across all future sessions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With