facebook/facebook-android-sdk — Issue #252: View a friend's profile in FbDialog
Author: PaulFake
Created: 2011-11-24 06:20:44+00:00
State: open

Hi,

I can't seem to figure out how to simply view a friend's profile using the FbDialog. I've tried using the Graph API to get the "link" URL, and then opening that URL with FbDialog like so:

String strData = m_facebook.request("4565677");
JSONObject obj = new JSONObject(strData);
String strLink = obj.getString("link");

FbDialog dlg = new FbDialog(this, strLink, new ProfileDialogListener());

This opens the FbDialog, then opens my phone's default web browser and takes me to the correct profile on the mobile Facebook site. The problem with this is that I need to re-login in order to actually view the profile. So, how can I view a profile inside the FbDialog window using the current session?