facebook api 图不搜索用户
facebook api graph not search users
我正在尝试查找用户,但出现身份验证错误
import requests
from urllib.parse import urlencode
token = 'my-token'
graph_url = 'https://graph.facebook.com/v3.2/search?'
params = {
'q':'francisco',
'type':'user',
'method':'get',
'format':'json',
'access_token':token
}
url = graph_url+urlencode(params)
resp = requests.get(url)
print(resp.json())
错误:
{'error': {'message': 'Unsupported operation', 'type': 'OAuthException', 'code': 100, 'fbtrace_id': 'Dao1UbelGkF'}}
好像我做的不好或者不再允许搜索
https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#search-4-4
从 2018 年开始,搜索用户将不再可用。无论如何,这将没有任何意义,您将只能获得授权您的应用程序的用户。
我正在尝试查找用户,但出现身份验证错误
import requests
from urllib.parse import urlencode
token = 'my-token'
graph_url = 'https://graph.facebook.com/v3.2/search?'
params = {
'q':'francisco',
'type':'user',
'method':'get',
'format':'json',
'access_token':token
}
url = graph_url+urlencode(params)
resp = requests.get(url)
print(resp.json())
错误:
{'error': {'message': 'Unsupported operation', 'type': 'OAuthException', 'code': 100, 'fbtrace_id': 'Dao1UbelGkF'}}
好像我做的不好或者不再允许搜索
https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#search-4-4
从 2018 年开始,搜索用户将不再可用。无论如何,这将没有任何意义,您将只能获得授权您的应用程序的用户。