简体   繁体   English

如何使用Facebook图形API获取公共页面的帖子?

[英]How to fetch a public page's posts using facebook graph api?

Can I fetch all the posts data from a page with logged in user's access token ? 我可以从具有登录用户访问令牌的页面获取所有帖子数据吗? or Is there any other way to retrieve all the posts data of a public page using Facebook Graph Api for Android ? 或者还有其他方法可以使用Android版Facebook Graph Api检索公共页面的所有帖子数据吗?

You will get facebook post data in json format that you can parse according to your requirement. 您将获得json格式的Facebook发布数据,您可以根据需要对其进行解析。

GraphRequest request = GraphRequest.newGraphPathRequest(
                AccessToken.getAccessToken(),
                "/YOUR_PAGE_ID/posts",
                new GraphRequest.Callback() {
                    @Override
                    public void onCompleted(GraphResponse response) {
                        // Insert your code here

                        Log.d("raw response ",response.getRawResponse());
                    }
                });

        request.executeAsync();

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

相关问题 如何使用Graph API获取特定用户的所有Facebook帖子 - How to get all Facebook posts for a particular user using Graph API 获取没有身份验证令牌的Facebook Page的公开帖子 - Get a Facebook Page's public posts without an auth token Android:如何使用Graph API从Facebook朋友墙上获取帖子 - Android: How to fetch posts from a Facebook friend wall using Graph APIs 如何使用Facebook Graph Api根据位置获取所有Facebook公共事件? - How can I get all Facebook public events based on location using Facebook Graph Api? 如何在Android中使用Graph API获取喜欢我的Facebook帖子的人的数据 - How to get data of people who likes my facebook posts using Graph API in android 如何使用图表Api获取Facebook朋友的周年纪念日 - How to get Facebook friend's Anniversary date using graph Api 如何在Facebook图形API中获得user_posts的访问权限 - How to get access for user_posts in facebook graph api 使用Facebook图形API检索页面的提要 - Using facebook graph api to retrieve feeds of a page 如何使用facebook open graph api获取所有对象,即特定用户喜欢的页面上的帖子,即“我”? - How to get all objects i.e posts on a page liked by a particular user i.e. 'me' with facebook open graph api? 无法使用图形API Facebook Facebook SDK 4.0获取配置文件图片 - Unable to fetch profile pic using graph api Facebook sdk 4.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM