I am creating an application that will be displaying NewsFeed from a particular User.
I tried to use this :
try {
FaceBookAccess.anonymousLogin(clientID, clientSecret);
} catch (Exception e) {
e.printStackTrace();
}
try {
FaceBookAccess.getInstance().getNewsFeed(facebookUsername, (DefaultListModel) news.getModel(), new ActionListener() {
public void actionPerformed(ActionEvent evt) {
c.removeAll();
c.addComponent(BorderLayout.CENTER, news);
c.revalidate();
}
});
} catch (IOException ex) {
ex.printStackTrace();
}
but its not working