Пример запросов Python:
запросов на импорт
url = "https://graph.facebook.com/v2.11/yourPostId/comments"
querystring = {" access_token ":" yourtoken "}
payload = "message = test% 20comment" headers = {'content-type': "application / x-www-form-urlencoded", 'cache-control': "no-cache"}
response = request.request ("POST", url, data = payload, headers = headers, params = querystring)
print (response.text)
Пример Python http.client:
import http.client
conn = http.client.HTTPSConnection ("graph.facebook.com")
payload= "message = test% 20comment"
headers = {'content-type': "application / x-www-form-urlencoded", 'cache-control': "no-cache"}
conn.request ("POST", "/v2.11/yourPostId/comments?access_token=yourtoken", полезная нагрузка, заголовки)
res = conn.getresponse () data = res.read ()
print (data.decode ("utf-8"))