import requests
import json
url = "http://www.theguardian.com/world/2014/oct/01/ebola-us-doctors-texas-liberia"
api = 'http://graph.facebook.com/?id='
r = requests.get(api + url)
data = r.text
x = json.loads(data)
if 'shares' in x:
try:
print 'Facebook shares', x['shares']
except:
pass
This script used to get the Facebook shares/likes from a given webpage, however, today it stopped working. Did they change the API, or something different is wrong?