There is no property count in current graph api response. At least I didnt find a way to produce this in the response. So I am assuming that $entry->likes->count is obsolete.

Instead I would use count($entry->likes->data) to get the like count. Same for comments.

EDIT: This is not going to work afterall, cause the likes will be paged. It would work if you set the like limit to a number that could never be reached, but thats not a very good option when there are hundreds of thousands of likes.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Martin.’s picture

Issue summary: View changes
Status: Patch (to be ported) » Needs work
SocialNicheGuru’s picture

what fields should I create for the likes to link to? Should I create an integer field?

lolandese’s picture

Status: Needs work » Needs review
FileSize
1.05 KB

The solution is twofold: