Results 1 to 3 of 3

Thread: Additional Fields from Page Object

  1. #1
    Join Date
    Oct 2011
    Posts
    15

    Default Additional Fields from Page Object

    I'm working on an application which uses a Facebook user's "liked" movies, however the Page interface within spring-social-facebook only provides access to a limited number of fields which are common to all types of Page objects. I need some specific fields which are returned by Facebook so I can be sure exactly which Movie the user likes in the event of a name collision.

    When using Facebook's Graph API explorer, If I request information for the film "A Scanner Darkly": https://graph.facebook.com/11803178355 I get the response at the end from which I want to access the 'release_date' and 'directed_by' fields.

    Does anyone know if I can access these values using the spring-social-facebook API.

    Code:
    {
      "id": "11803178355",
      "name": "A Scanner Darkly",
      "picture": "http://profile.ak.fbcdn.net/hprofile-ak-ash2/50332_11803178355_6952_s.jpg",
      "link": "http://www.facebook.com/pages/A-Scanner-Darkly/11803178355",
      "likes": 11063,
      "category": "Movie",
      "is_published": true,
      "website": "http://wip.warnerbros.com/ascannerdarkly/",
      "release_date": "2007",
      "genre": "Science Fiction",
      "starring": "Keanu Reeves, Robert Downey Jr., Woody Harrelson, Winona Ryder, Rory Cochrane",
      "screenplay_by": "Richard Linklater based on Philip K. Dick's novel",
      "directed_by": "Richard Linklater",
      "produced_by": "Steven Soderbergh and George Clooney (Executive Producers)",
      "studio": "Warner Independent Pictures",
      "awards": "Winner of Best Animation award OFCS Awards 2007",
      "plot_outline": "In the future \"seven years from now\", America has lost the war on drugs. A highly addictive and debilitating illegal drug called Substance D, distilled from small blue flowers, has swept across the country. In response, the government develops an invasive, high-tech surveillance system and puts in place a network of informants and undercover agents.\n\nBob Arctor (Reeves) is an undercover agent assigned to immerse himself in the drug underworld and infiltrate the drug supply chain. Arctor and his housemates live in a suburban tract house in a poor Anaheim, California neighborhood. They are heavy drug users, and they pass their days by taking drugs and having long, drug-induced conversations.",
      "can_post": true,
      "talking_about_count": 91,
      "type": "page"
    }

  2. #2
    Join Date
    Aug 2004
    Posts
    1,070

    Default

    I'm certain that those aren't available anywhere in Spring Social's Facebook API binding. But that's good data that should be gathered. Could you please open an issue in Jira (https://jira.springsource.org/browse/SOCIALFB) and I'll look into getting it covered. Or even better, submit a pull request with the changes to support this.

    In the meantime, you could also fetch this at a lower level via the RestOperations. It's a bit more inconvenient, but it's certainly an option until the API binding includes it.
    Craig Walls
    Spring Social Project Lead

  3. #3
    Join Date
    Oct 2011
    Posts
    15

    Default

    Thanks - I thought that was the case, I've raised a Jira for the moment at https://jira.springsource.org/browse/SOCIALFB-73.

    Quote Originally Posted by habuma View Post
    I'm certain that those aren't available anywhere in Spring Social's Facebook API binding. But that's good data that should be gathered. Could you please open an issue in Jira (https://jira.springsource.org/browse/SOCIALFB) and I'll look into getting it covered. Or even better, submit a pull request with the changes to support this.

    In the meantime, you could also fetch this at a lower level via the RestOperations. It's a bit more inconvenient, but it's certainly an option until the API binding includes it.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •