首页 文章

打开Facebook用户 Profiles

提问于
浏览
0

有没有办法用另一个应用程序的Facebook应用程序打开Facebook用户 Profiles ?

我从Graph Api获得此链接:https://www.facebook.com/app_scoped_user_id/1234567/这是用户配置文件的链接,我想使用Facebook应用程序打开配置文件 .

如果我使用ACTION_VIEW和该URL创建一个intent,它会在浏览器中打开Facebook .

谢谢!

我看到了其他选择,但它们已经过时了 . 我正在使用Graph API中的v2.4 .

1 回答

  • 1

    我使用这个代码,最后它工作 . 基于@ Kristo1990建议的帖子 .

    String uri = "fb://profile/12345678";
    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
    startActivity(intent);
    

相关问题