bobolounna / restfb

Automatically exported from code.google.com/p/restfb
0 stars 0 forks source link

Native support for insights #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Need to add this class:

  public static class Insight extends NamedFacebookType {
    @Facebook
    private String period;

    @Facebook
    private List<JsonObject> values = new ArrayList<JsonObject>();
    ...
  }

Which you can then fetch like this: 

Connection<Insight> insights = 
facebookClient.fetchConnection("PAGE_ID/insights", Insight.class);

Should update the website too.

Original issue reported on code.google.com by mark.a.a...@gmail.com on 11 Feb 2011 at 3:37

GoogleCodeExporter commented 8 years ago

Original comment by mark.a.a...@gmail.com on 13 Feb 2011 at 1:54