且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用自己的Android应用程序中的意图在Facebook应用程序中打开特定相册或照片

更新时间:2023-10-20 12:20:58

特别是,新版本的Facebook应用程序可与

In particular, new versions of facebook app work with

Uri.parse("fb://facewebmodal/f?href=" + FACEBOOKURL

我发现这是实现所需功能的最简单方法.

I found this the simplest approach to acheive what was needed.

还请注意,要获取URL,可以转到Facebook相册(在Facebook桌面上),单击编辑"和标签"旁边的三个点,然后选择获取链接".我发现这比简单地从浏览器复制URL更为可靠.

Note also that to get the URL you can go to the facebook album (on facebook desktop), click the three dots next to "Edit" and "Tag" and select "Get Link". I found this more reliable than simply copying the URL from the browser.