2024-06-25 05:23:15 发布
网友
这是我当前获取/me对象的方式:
/me
self.facebook_user = facebook.GraphAPI(access_token).get_object('me')
但是,例如,如果我只想请求来自/me的name和{}字段,那么如何构建请求呢?在
name
您可以使用**参数传入额外的查询参数:
graph = facebook.GraphAPI(access_token) profile = graph.get_object('me') args = {'fields' : 'id,name,email', } profile = graph.get_object('me', **args)
您可以使用**参数传入额外的查询参数:
相关问题 更多 >
编程相关推荐