Facebook Backup

Getting ready for the exodus: http://www.quitfacebookday.com/

Seems every time I want to save a list of friends my Facebook “friends” I have to find a different way. Since my last attempt in January: Facebook friends backup they moved things around again.

Try this:

You need to be logged in to Facebook for this to work.

Go here: http://developers.facebook.com/docs/reference/rest/fql.query

Run this query:

SELECT uid, first_name, last_name, name, birthday_date, sex, hometown_location, current_location, profile_url, profile_blurb, username, website FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = 638122456)

Change uid1 to your Facebook ID.. which you can find in the URL when you use Facebook.

You’ll end up with some JSON output text.

Copy, paste, save.

There are obviously better ways, but this is the 2min hack. No, you can’t extract your friend’s email address.. why? Because Facebook is evil remember.

Maybe somebody wants to write us some php to do a better backup.

3 thoughts on “Facebook Backup

  1. I can;t get this to work – I copied the number that appeared in my urls and only get back some garbage namely

    {
    “error_code”: 104,
    “error_msg”: “Requires valid signature”,
    “request_args”: [
    {
    “key”: “query”,
    “value”: “SELECT uid, first_name, last_name, name, birthday_date, sex, hometown_location, current_location, profile_url, profile_blurb, username, website FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = “myuid erased for security”)”
    },
    {
    “key”: “method”,
    “value”: “fql.query”
    },
    {
    “key”: “access_token”,
    “value”: “2227470867|ZYPf-2_ZVO0lsjuHs42VsNjRMDo.”
    },
    {
    “key”: “format”,
    “value”: “json”
    }
    ]
    }

    I must be doing soemthing wrong

    Although with only 2200 odd quitters this is not likely to affect anyone so much!

    Trev

    1. I don’t expect everybody to just leave FB, but I do think I’ll start losing a few contacts.

      Are you logged in? I think it picks up a cookie from your browser for the access-token thing. Hmm.. from the details you posted it seems you are.

      Weird, worked for me.

Comments are closed.