我想使用图表 API 获取任何用户 ID,我需要向 Facebook api 发送什么?
I want to use the Graph API to get any user ID, what do I need to send to Facebook api?
我想使用图表 API 获取任何用户 ID,我需要向 Facebook 发送什么 api?
https://graph.facebook.com/100009031494361?access_token=.....
{
"error": {
"message": "Unsupported get request. Object with ID '100009031494361' does
not exist, cannot be loaded due to missing permissions,
or does not support this operation. Please read the Graph API documentation
at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"error_subcode": 33,
"fbtrace_id": "AT-imffjNk6PZJGyIE4m6kG"
}
}
为了检索用户 ID,您可以使用 /me endpoint:
/me
The /me node is a special endpoint that translates to the user_id of
the person (or the page_id of the Facebook Page) whose access token is
currently being used to make the API calls
例如以下卷曲:
curl -i -X GET \
"https://graph.facebook.com/v4.0/me?fields=id,name&access_token=<the_token>"
希望对您有所帮助
我想使用图表 API 获取任何用户 ID,我需要向 Facebook 发送什么 api?
https://graph.facebook.com/100009031494361?access_token=.....
{
"error": {
"message": "Unsupported get request. Object with ID '100009031494361' does
not exist, cannot be loaded due to missing permissions,
or does not support this operation. Please read the Graph API documentation
at https://developers.facebook.com/docs/graph-api",
"type": "GraphMethodException",
"code": 100,
"error_subcode": 33,
"fbtrace_id": "AT-imffjNk6PZJGyIE4m6kG"
}
}
为了检索用户 ID,您可以使用 /me endpoint:
/me
The /me node is a special endpoint that translates to the user_id of the person (or the page_id of the Facebook Page) whose access token is currently being used to make the API calls
例如以下卷曲:
curl -i -X GET \
"https://graph.facebook.com/v4.0/me?fields=id,name&access_token=<the_token>"
希望对您有所帮助