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.