Music meta missing from Facebook /home

Posted by Peter Watts on Stack Overflow See other posts from Stack Overflow or by Peter Watts
Published on 2012-03-02T00:49:41Z Indexed on 2012/11/28 11:04 UTC
Read the original article Hit count: 306

When somebody shares a Spotify playlist, the attachment is missing from the Graph API.

What is shown in Facebook:

enter image description here

What is returned by the Graph API:

{
  "id": "********_******", 
  "from": {
    "name": "*****", 
    "id": "*****"
  }, 
  "message": "Refused's setlist from last night's secret show in Sweden...", 
  "icon": "http://photos-c.ak.fbcdn.net/photos-ak-snc1/v85005/74/174829003346/app_2_174829003346_5511.gif", 
  "actions": [
    {
      "name": "Comment", 
      "link": "http://www.facebook.com/*****/posts/*****"
    }, 
    {
      "name": "Like", 
      "link": "http://www.facebook.com/*****/posts/*****"
    }, 
    {
      "name": "Get Spotify", 
      "link": "http://www.spotify.com/redirect/download-social"
    }
  ], 
  "type": "link", 
  "application": {
    "name": "Spotify", 
    "canvas_name": "get-spotify", 
    "namespace": "get-spotify", 
    "id": "174829003346"
  }, 
  "created_time": "2012-03-01T22:24:28+0000", 
  "updated_time": "2012-03-01T22:24:28+0000", 
  "likes": {
    "data": [
      {
        "name": "***** *****", 
        "id": "*****"
      }
    ], 
    "count": 1
  }, 
  "comments": {
    "count": 0
  }, 
  "is_published": true
}

There's absolutely no reference to an attachment, other than the fact the type is 'link' and the application is Spotify.

If you want to test, Spotify's page (http://graph.facebook.com/spotify/feed) usually has a playlist or two embedded (and missing from Graph API). Also if you filter your home feed to just Spotify stories (http://graph.facebook.com/me/home?filter=app_174829003346), you'll get a bunch of useless stories without attachments (assuming your friends shared music recently)

Anyone have any ideas how to access the playlist details, or is it unavailable to third party developers (if so, this is a very a bad user experience, because the story makes no sense without the attachment).

I am able to fetch scrobbles without any trouble using the user_actions.listens. Also, if there is a recent activity story, e.g. "Peter listened to The Shins", I am able to get information about the band. The problem only happens on attachments.

© Stack Overflow or respective owner

Related posts about facebook

Related posts about facebook-graph-api