Closed jeffse closed 2 years ago
When fetching an edge, there is no way to get at any summary data that might be returned.
fb_session = FacebookAds::Session.new(access_token: 'token', app_secret: 'secret') fb_post = FacebookAds::PagePost.get('xxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxx', 'message', fb_session) fb_comments = fb_post.comments(summary: 'total_count')
Turning on logs, I can see that the total_count for the number of comments here is returned, but the SDK just ignores it and it remains inaccessible. Example JSON returned:
{ "data": [ { "created_time": ..., "message": ..., "id": ... }, ... ], "paging": { "cursors": { "before": ..., "after": ... }, "next": ... }, "summary": { "total_count": 110 } }
Store any summary results into the summary property on the Edge object. Now,
2.6.5 :006 > fb_comments.summary => {"total_count"=>110}
What's the issue?
When fetching an edge, there is no way to get at any summary data that might be returned.
Steps/Sample code to reproduce the issue
Observed Results:
Turning on logs, I can see that the total_count for the number of comments here is returned, but the SDK just ignores it and it remains inaccessible. Example JSON returned:
Fix:
Store any summary results into the summary property on the Edge object. Now,