繁体   English   中英

如何从Android应用程序在Facebook应用程序中打开具有适当ID的公共页面的相册?

[英]How to open album of the public page with appropriate ID in the Facebook application from Android app?

我的问题是如何打开特定专辑?
我打开了页面,但不知道进一步的步骤。
已经有人问过

final Intent appIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb://page/144344458913180"));
startActivity(appIntent);

根据facebook Graph API文档,您应按以下方式提出请求:

/* make the API call */
new Request(
    session,
    "/{album-id}",
    null,
    HttpMethod.GET,
    new Request.Callback() {
        public void onCompleted(Response response) {
            /* handle the result */
        }
    }
).executeAsync();

我还没有检查自己,但是如果您想查看相册中的文档以及如何使用它们: https : //developers.facebook.com/docs/graph-api/reference/v2.2/album

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM