Unable to get a facebook page's feed onto my app

前端 未结 2 1597
野的像风
野的像风 2021-02-02 04:13

I want my app to just display the posts published by a facebook page without any authentication. Here is the code:

public class Main extends Activity {

@Overrid         


        
2条回答
  •  一个人的身影
    2021-02-02 05:06

    I've done it with the access token. There's a tool in facebook developpers "Tool/Access Token Tool" You'll get an access token called "app token" that you can use like this : https://graph.facebook.com/"Your Facebook ID"/feed?access_token="Your app token";

    Then you'll get the json object of your feed and you'll be able to do whatever you want using JSON parsing methods.

    Your app token will not move until somebody change the password or try to get another "app secret id" in your app management page on Facebook. Enjoy!

提交回复
热议问题