开发者

C# to get facebook status

Simply put: I would like my application to go off and give me the latest facebook status update(or two) for a single user(me). 开发者_StackOverflow中文版IE: My website blah.com will display my own status update(with a like button if possible).

Added Complexity: I have read the following api http://developers.facebook.com/docs/reference/api/ {https://graph.facebook.com/[your facebook id]/feed} with little success of retrieving my status, unless i turn off my privacy settings. I would like to leave these as is for my test application as I don't think i can tell the client to make theirs public.

Where are we now: That leaves setting up with OAuth or using a 3rd party wrapper. I have had little success with the latter and am not skilled enough to set up with oauth.

Your help would be appreciated.


I just uploaded some source to github if you are interested. It's a little project to help with Facebook's Graph API. Feel free to check it out here. Its not the most scalable code, but it does the trick.


Why not grab it via RSS? Go here:

http://www.facebook.com/notifications.php

and click on the 'Via RSS' link to go to your notifications feed, and simply change 'notifications.php' in the URL to 'status.php'.

You should then be able to grab this feed in to an XmlDocument and check out the first item node.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜