2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Facebook Graph API でユーザーIDが取得出来ない原因

Posted at

Facebook の Graph API でユーザーネームからユーザーID取得に失敗したときのメモです。

https://graph.facebook.com/{ username }
とかにアクセスすると普通はユーザーID含む基本情報が返ってきます。

が、あるとき以下の様なデータが返ってきた。

{
"error": {
"message": "Unsupported get request.",
"type": "GraphMethodException",
"code": 100
}
}

で調べたらどうも対象のFacebookページが
「誰でも(13歳以上)」じゃない場合はエラーが返ってくる
仕様みたいでした。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?