Welcome to WebmasterWorld Guest from 54.145.13.215

Forum Moderators: rogerd

Message Too Old, No Replies

Facebook Developers Get API For Status, Notes, Links, and Video

     
11:10 am on Feb 7, 2009 (gmt 0)

Administrator from GB 

WebmasterWorld Administrator engine is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month Best Post Of The Month

joined:May 9, 2000
posts:22315
votes: 239


Facebook Developers Get API For Status, Notes, Links, and Video [developers.facebook.com]
We're launching several new APIs for Facebook Platform today. These new interfaces open up access to the content and methods for sharing through several Facebook Applications -- including Facebook Status, Notes, Links (what we used to call Posted Items), and Video -- to go along with the APIs already available for uploading and viewing through Facebook Photos. We've seen increasing engagement with over 15 million users updating their status each day and sharing over 24 million links per month. We wanted to make sure this content and the ability to share this content was available through our standard APIs.

Specifically, your applications can now directly access all of a user's status, links, and notes via new methods and FQL calls. Your application will have access to any status, notes, or links from the active user or their friends that are currently visible to the active user. In addition, we're opening new APIs for you to post links, create notes, or upload videos for the current user, and we've made setting a user's status easier.

1:57 pm on Feb 7, 2009 (gmt 0)

Moderator from CA 

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 29, 2003
posts:4059
votes: 0


fantastic. I've been waiting for *status* for a long time, glad it's finally open to the API! Thanks Facebook
3:28 pm on Feb 9, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Mar 20, 2008
posts:673
votes: 0


gawker reported a 45% increase in registrations after incorporating facebook connect: [alleyinsider.com...]

opening their api should bolster fb connects usage considerably. it's going to be interesting how webmasters will adapt it to their sites.

i haven't heard much on how google is gaining traction in this area.

5:16 am on Feb 13, 2009 (gmt 0)

Moderator from CA 

WebmasterWorld Administrator httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 29, 2003
posts:4059
votes: 0


The dev wiki describes this method:
$facebook->api_client->status_get();

I just downloaded the latest PHP5 client library from f8, and that function isn't in there. Am I missing something?

9:27 am on Apr 12, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 16, 2004
posts:1341
votes: 0


I couldn't find the code in the API either -- or get it to work using either of the API calls shown in the wiki.. and wasted a lot of time trying to figure out if it was some thing I was doing wrong... argghhh!

Note the API page:
[wiki.developers.facebook.com...]
still lists status.get and status.set as (BETA), (scroll down list of alphabetic listed functions).

After a bit of RTFM, I decided to try using FQL to directly access the status data.

I whipped up the following php / FQL and was able to retrieve and display the status message data for myself, (as logged in user), and for my friend's user ID's.



<?php
$user_id = '[red]{replace with user id}[/red]';
$query = "SELECT uid,status_id,message FROM status WHERE uid=$user_id";
$result = $facebook->api_client->fql_query($query);
if ($result != NULL) {
$status_id = $result[0]['status_id'];
$message = $result[0]['message'];
echo "$status_id :: $message<br />";
} else {
echo "No status messages found.<br />";
}
?>

The columns available from status table are:

  • uid
  • status_id
  • time
  • source (app which posted status msg)
  • message