我正在使用以下代码将照片上传到Facebook,但我无法将照片设置为公开。我总是得到Facebook的回复:
privacy must contain a valid privacy 'value'
那么,如何修复呢?谢谢:))
url = 'https://graph.facebook.com/v2.7/me/photos' +'?access_token=' + token
data = {'privacy': {'value':'EVERYONE'}}
files = {'file': open('304992328824529136_239074999.jpg', 'rb')}
r = requests.post(url=url, data = data, files = files, verify = False)