相关疑难解决方法(0)

在指定的个人资料页面上打开Facebook应用

我正在尝试使用SO中的一些代码,但它失败了:

那些是uri应该打开应用程序的正确部分.

facebook://facebook.com/info?user=544410940     (id of the user. "patrick.boos" won't work)
facebook://facebook.com/wall?user=544410940   (will only show the info if you have added it as 
Run Code Online (Sandbox Code Playgroud)

我想要的是在我指定的配置文件上打开Facebook应用程序.这是我正在尝试的代码.该数字是配置文件的UID.

        String uri = "facebook://facebook.com/wall?user=417079614970109"; 
        intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
        startActivity(intent);
Run Code Online (Sandbox Code Playgroud)

是折旧还是什么?我现在如何完成这项任务?

android facebook android-intent

17
推荐指数
3
解决办法
3万
查看次数

标签 统计

android ×1

android-intent ×1

facebook ×1