English 中文(简体)
Where is the Facebook Status feed URL these days?
原标题:

I know that it was previously possible to display your most recent Facebook statuses on your website as an RSS feed, but it seems they ve changed their setup and I can t figure out where to find the feed anymore....

I saw some people searching for this a while ago, but since Facebook just released their new layout, I didn t know if this might have changed again.

Any help would be greatly appreciated.

最佳回答

Try this for a feed in JSON-format.

http://graph.facebook.com/[uid]/feed

问题回答

Facebook appears to have killed all the public status feeds in the name of user privacy. The only way to fetch it is to build a facebook application that gets your status updates, and then associating your facebook account with that application to give it permission to access your status updates so it can put them somewhere else.

Thankfully, someone has already done that for us. Just go to http://apps.facebook.com/statusexport/ while logged in to facebook and grant the app permission. Then it will give you a public URL to an RSS feed of your status updates.

Just keep it simple... This is an easy way to load your latest status(es) using graph.facebook.com through curl / php. Includes a quick simple function.

Easiest way to load your latest facebook status

I found this site which you authenticate, and it will then give you a working rss feed. I have found that it does have some limitations, but you can see it here: http://www.fbrss.com

If you wan t to display status updates only, you can use:

https://graph.facebook.com/[uid]/posts

This URL will return a JSON string of user [uid]:s status updates.

To get your status feed, follow these instructions:

  1. Log into Facebook
  2. Go to http://www.facebook.com/notifications.php
  3. Click the link titled "Your Notifications" at the bottom of the box to the right of the list of notifications
  4. That will bring you to a feed of your notifications, which is not what you asked for. This url will be something like feed://www.facebook.com/feeds/notifications.php?id=XXXXXX&viewer= XXXXXX&key=YYYYYYYY&format=rss20
  5. Change notifications.php to status.php in the URL (preserving all the URL parameters).
  6. That should be a feed of your status updates.

Start at http://www.facebook.com/notes.php and click on the "My Friend s Notes" link. Change the friends_notes part of the url to friends_status, and you should be good to go.

Programmatically specifying user to query status updates for

(Note: This is a server-side solution)

It s possible the feed you re looking for has been deprecated for security purposes.

Alternatively facebook FQL on the Status table might provide an answer because it allows you to specify the user ID (for example, your own) for which to retrieve status updates, and a time frame can be specified to limit them as desired.

A raw fb FQL query example, for status updates:

select uid,status_id,message 
from status 
where uid in 
    (select uid2 from friend where uid1= uid) 
    AND time > {time in the last week}

The main FQL guide starts here.

Sample

Poking around the Internet you can pick up sample code of FQL code being called from PHP and other platforms.

PHP example:

<?php
$q = "SELECT name FROM user WHERE uid= $id ";
$query = $facebook->api_client->fql_query($q);
?>

The facebook client API library for your platform of choice can be downloaded and used to issue FQL statements.

--

There is also a Test Console hosted online for facebook developers to test API statements against their own account.

You can also use a RSS feed generator for your Facebook Statuses (or Photos) like the RSS Feeds application on Facebook.
It will help you generate a RSS feed for all your statuses and photos while maintaining the privacy modes.
Although, I am not a fan of the user interface the application has, but the functionality is what is awesome :)

Theres also anther way to do it..Which is simple and easy...its not an rss feed but a plugin can be developed to output as an rss...Theres a tutorial of it on http://Fourgefeed.com





相关问题
Facebook Connect login dialog not working

I am using Facebook Connect for iPhone and following the official instructions. I use the following code to display the login dialog: FBLoginDialog* dialog = [[[FBLoginDialog alloc] initWithSession:...

Facebook App Profile Tab is Empty ... No Content Displayed?

I can view my application via the http://apps.facebook.com/myapplication/ link and the content shows up correctly. I also added the application as a tab to a facebook page. However, when viewing the ...

Facebook Platform error: "Object cannot be liked"

I m working on a Facebook Application that generates wall posts. In testing these posts, I ve discovered that the Facebook Platform action of "liking" a post is failing. The specific error message ...

how to call showPermissionsDialog() in php (facebook api)?

I was reading over the documentation yet I could not figure out how to call Facebook.showPermissionsDialog() in php include_once ./facebook-platform/php/facebook.php ; $facebook = new Facebook(my ...

Facebook connect

If I plug in the facebook connect into my website, How can I prevent double signups? Lets say I have a user that s already signed up to my site but he clicked the connect with facebook, is there a ...

热门标签