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
There is actually a way to get a page public feed without user permission!
Solution
Get the page Facebook Profile Id: the simplest way is to query the Graph API http://graph.facebook.com/{YourPageUsername} . e.g. for oStream Android App https://graph.facebook.com/oStreamApp will return Facebook Profile Id 289781571139242
Request the RSS of the Facebook page feed: Make an http request to https://www.facebook.com/feeds/page.php?format=rss20&id={yourAppId} e.g. For oStream Android App the Public https://www.facebook.com/feeds/page.php?format=rss20&id=289781571139242
An Android implementation will simply be:
Side note This question is not very much about Android but just with Facebook API.
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!