0

有没有办法从另一个应用程序使用 Facebook 应用程序打开 Facebook 用户个人资料?

我从 Graph Api 获得此链接:https ://www.facebook.com/app_scoped_user_id/1234567/ 这是指向用户个人资料的链接,我想使用 Facebook 应用程序打开个人资料。

如果我使用 ACTION_VIEW 和该 URL 创建一个意图,它将在浏览器中打开 Facebook。

谢谢!

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

4

1 回答 1

1

我使用了这段代码,终于成功了。基于@Kristo1990 建议的帖子。

String uri = "fb://profile/12345678";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
startActivity(intent);
于 2016-01-05T21:49:45.223 回答