Ke hana nei me ka Facebook SDK (ʻoi aku ka pololei i ka hoʻokō ʻana i kahi hana ʻeʻe Facebook ma waena o kahi kikowaena REST), ʻo ka hōʻailona lawe ʻia i loaʻa i ka mea kūʻai mai Facebook e nānā pono ʻia e ka mea lawelawe no ka pono ma mua o ka hoʻokō ʻia ʻana o nā hana hou. .
ʻO ke ala maʻalahi e hana ai i kēia me ke kāhea API undocumented
GET https://graph.facebook.com/me?access_token=TOKEN
kahi TOKEN kahi hōʻailona komo i ʻōlelo ʻia, aia ma kahi o 200 mau huapalapala ka lōʻihi. He pane kūleʻa paha ka pane
{ "id": "XXXXXXXXXXXXXXXXX", "email": "david\u0040vielhuber.de", "first_name": "David", "gender": "male", "last_name": "Vielhuber", "link": "https://www.facebook.com/app_scoped_user_id/XXXXXXXXXXXXXXXXX/", "locale": "de_DE", "name": "David Vielhuber", "timezone": 2, "updated_time": "2014-02-09T18:47:26+0000", "verified": true }
E hoʻohana ka ID o ka mea hoʻohana ma aneʻi no ka hōʻoia hope loa.
I ʻole loaʻa iā ʻoe ka leka inconspicuous ʻaʻole ia he hōʻailona kūpono:
{ "error": { "message": "Invalid OAuth access token.", "type": "OAuthException", "code": 190 } }