个人主页与公共主页
个人主页与公共主页的区别还是很大,而且公共主页是需要用户自己开通的。详细信息可以打开这个链接,里面也有具体的创建方法。
实现
try {
mContext.getPackageManager().getPackageInfo("com.facebook.katana", 0);
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("fb://page/id_here")));
} catch (Exception e) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.facebook.com/user_name_here/")));
}
id_here:页面ID。通过这个链接获取
user_name_here:首页地址,也就是公共中心地址https://www.facebook.com/后面拼接的
问题
其他一些错误或者异常可参考此链接