Can I get the total count of a post likes, shares and comments using facebook sdk in Python?
<p>I want to get the total number of counts of a facebook post in python. The code below is giving a json object of some persons who likes the post. But not all. I need total counts. Is it possible?</p>

<pre><code>import requests
import facebook
token=''
graph = facebook.GraphAPI(token)
lik = graph.get_connections(id='10153608167431961', connection_name='likes')
print(lik)
</code></pre>

<p>Result is :</p>

<blockquote>
  <p>{'data': [{'id': '1583767538554134', 'name': 'Ãp PÃ¶'}, {'id': '120568968399628', 'name': 'William Anthony Christo'}, {'id': '699615593474341', 'name': 'Anum Rabani'}, {'id': '290360191169562', 'name': 'à¦°à¦«à¦¿à¦à§à¦² à¦à¦¸à¦²à¦¾à¦® à¦¤à§à¦«à¦¿à¦'}, {'id': '119195851825867', 'name': 'Anant Gharte'}, {'id': '1584033738513309', 'name': 'Miguel Gates'}, {'id': '170725429957788', 'name': 'Rahmatullah Kazimi'}, {'id': '165244040549022', 'name': 'Jose Marques'}, {'id': '553277864818751', 'name': 'Shubham Kumar'}, {'id': '177910112626556', 'name': 'Rajesh Singh'}, {'id': '10206027408500948', 'name': 'CÃ¼neyt Ekin'}, {'id': '134409193615843', 'name': 'Moazzem Hossain'}, {'id': '1452911201684073', 'name': 'Sohail Noori'}, {'id': '706685776074740', 'name': 'Man Muet'}, {'id': '1655289584790642', 'name': 'Emeghara Lucky Kelechi'}, {'id': '10205877189481867', 'name': 'Danielle Oliver Solomon'}, {'id': '511315079054021', 'name': 'Ajay Kumar'}, {'id': '659773750764822', 'name': 'Tiago Balloni'}, {'id': '385284718315460', 'name': 'Ivica Herman'}, {'id': '394871897335035', 'name': 'Zubayer Hassan'}, {'id': '532960883548514', 'name': 'Mohan Rathod'}, {'id': '373452456160618', 'name': 'Jeevajohthy Pramulu Naidu'}, {'id': '803092719700936', 'name': 'Patricia Ann Harris'}, {'id': '960692997327631', 'name': 'Osama Ozy'}, {'id': '739963022766566', 'name': 'Abdalrhman Selim'}], 'paging': {'next': '<a href="https://graph.facebook.com/v2.1/10153608167431961/likes?access_token=EAACEdEose0cBAJZC5cI5OJZC6l6XZATLGsBjutHdQyvqEs4yQk7HejvKNAHqLwdNgANtMdvnGAekUo7Mx10u8K2MydmOCNNzEDmPAL3kTQITKTYIwwD1ZCNTjpLtSnZATTiW0xWrnaFbjJomXKQUnkMpF3ZCBqh6WYMixkh5tuhQZDZD&amp;limit=25&amp;after=NzM5OTYzMDIyNzY2NTY2" rel="nofollow">https://graph.facebook.com/v2.1/10153608167431961/likes?access_token=EAACEdEose0cBAJZC5cI5OJZC6l6XZATLGsBjutHdQyvqEs4yQk7HejvKNAHqLwdNgANtMdvnGAekUo7Mx10u8K2MydmOCNNzEDmPAL3kTQITKTYIwwD1ZCNTjpLtSnZATTiW0xWrnaFbjJomXKQUnkMpF3ZCBqh6WYMixkh5tuhQZDZD&amp;limit=25&amp;after=NzM5OTYzMDIyNzY2NTY2</a>', 'cursors': {'before': 'MTU4Mzc2NzUzODU1NDEzNAZDZD', 'after': 'NzM5OTYzMDIyNzY2NTY2'}}}</p>
</blockquote>

<p>graph.get_connections(id='10153608167431961', connection_name='likes', summary='true')</p>

<p>This should give the total likes for the given post/feed.</p>

python facebook facebook-graph-api