简体   繁体   中英

How to fetch notifications from Facebook

How to fetch notifications from face book. Is there any web-service or REST-based service by which we could fetch the notifications, contacts etc (like that in case of twitter).

Yes, it's REST based, but it doesn't allow for simple HTTP logins like Twitter does.

The call you will want to use is: http://wiki.developers.facebook.com/index.php/Notifications.getList

You can read about authentication (using FB connect, requires an app-integrated browser instance) here: http://wiki.developers.facebook.com/index.php/Authorization_and_Authentication_for_Desktop_Applications or here (works with any browser): http://wiki.developers.facebook.com/index.php/Auth.createToken

Since you seem to be using C#, you may want to look into this to get started: http://wiki.developers.facebook.com/index.php/C_Sharp

There's an RSS feed for the notifications.

Go to http://www.facebook.com/notifications and then at the top there's a little link called RSS. If you click on that, it opens the XML file for the notifications RSS feed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM