Dhanesh
Dhanesh

Reputation: 1141

Facebook news feed reader on android

I am trying for a facebook integration on my android application.

My requirement is to read each news feed as and when it comes, and to display it using a toast.

All the sample application I see on net are based on the web GUI. Can anyone help me with a sample code or hint to read the updates into a variable/string in my application?

Regards, Dhanesh

Upvotes: 3

Views: 9112

Answers (4)

Niranj Patel
Niranj Patel

Reputation: 33248

using this after login in facebook dialog..

     Facebook fb = new Facebook(APP_ID);
     String newsfeed=fb.request("me/home"); 
     System.out.println(newsfeed);

for get user news feed....

Upvotes: 7

KilledKenny
KilledKenny

Reputation: 375

Have you looked at facebook's owns api. Mobile Apps. If they don't have a solution on getting new news, then theres probably no clean api to get news an you have to turn to a scrape api or write your own scrape functions.

Upvotes: 0

harism
harism

Reputation: 6073

I'm guessing it's easiest done using Facebook Android SDK (you need permission for your application to access someone's news feed);

http://developers.facebook.com/docs/guides/mobile/#android

And Graph API documentation is a good read too;

http://developers.facebook.com/docs/reference/api/

Maybe there's some better examples but I found those documents rather complete while I was dealing with Facebook accessing.

Upvotes: 1

DKIT
DKIT

Reputation: 3481

Check out the Facebook API at http://developers.facebook.com/

Upvotes: 0

Related Questions