开发者

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 d开发者_StackOverflow中文版isplay 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


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....


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.


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜