Android 我如何才能看到某些用户';facebook上的个人主页?
我想在facebook上看到某些用户的个人资料页面。我使用了下面的代码,但不起作用。我刚刚在facebook应用程序上看到进度条旋转:Android 我如何才能看到某些用户';facebook上的个人主页?,android,facebook,Android,Facebook,我想在facebook上看到某些用户的个人资料页面。我使用了下面的代码,但不起作用。我刚刚在facebook应用程序上看到进度条旋转: try{ // open in Facebook app getPackageManager().getPackageInfo("com.facebook.katana", 0); return new Intent(Intent.ACTION_VIEW, Uri.parse("fb://p
try{
// open in Facebook app
getPackageManager().getPackageInfo("com.facebook.katana", 0);
return new Intent(Intent.ACTION_VIEW, Uri.parse("fb://page/" + facebookId));
} catch (Exception e) {
// open in browser
return new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.facebook.com/" +facebookId));
}
你能帮我吗?用这个
try{
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb://profile/100000349415153"));
startActivity(intent);
}catch(Exception e){
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.facebook.com/fahimsakri")));
}
}
我已经试过了。但我在Facebook应用程序上看到了类似“不可用”的错误消息。你知道为什么吗?因为配置文件id是nvalid,请尝试一个有效的配置文件id。配置文件id是否与facebook用户id相同?我可以在web浏览器上看到具有相同id的个人资料页