July 2017
Beginner to intermediate
312 pages
7h 27m
English
The following are the steps to connect to the API:
import requests import json
params = {'access_token': 'YOUR_ACCESS_TOKEN'}
page_url = 'https://graph.facebook.com/v2.8/MercedesBenzFrance/feed' result = requests.get(page_url, params = params)
data = result.json()
The data field contains a list of messages with the following fields: message, created_at, and id. We will print the content of messages.
for element in data['data']: print(element['message']
This simple method helps us access the content of conversations ...
Read now
Unlock full access