Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 我如何才能看到某些用户';facebook上的个人主页?_Android_Facebook - Fatal编程技术网

Android 我如何才能看到某些用户';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

我想在facebook上看到某些用户的个人资料页面。我使用了下面的代码,但不起作用。我刚刚在facebook应用程序上看到进度条旋转:

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的个人资料页