0
我的目的是找到有电话(移动)号码的页面(url/id)。我试图做一些事情:使用python搜索电话号码的用户页面
query=phone_number
r=requests.get("https://graph.facebook.com/search?access_token=" + token + "&q=" + query + "&type=user")
每当我收到错误:“应用程序没有能力进行此API调用”。
是否禁止用电话搜索,或者我犯了错误? 我的代码:
import requests
import facebook
token ="Here is my token"
graph = facebook.GraphAPI(token)
query=str(375293253273)
r=requests.get("https://graph.facebook.com/search?access_token=" + token + "&q=" + query + "&type=user")
print(r.text)
op=graph.request('search', {'q': '375293253273', 'type': 'user'})
print(op)
如果您提供一个最简单的工作示例来展示您想要实现的功能,那将是非常棒的。如果没有看到包括图书馆在内的整个脚本,很难发现问题。 – user1252280