Xa usebenza ne-Facebook SDK (ngakumbi ngakumbi xa uphumeza umsebenzi wokungena kwi-Facebook ngaphakathi REST ujongano), uphawu oludlulisiweyo umthengi alufumene kuFacebook kufuneka luqale lujongwe ngumncedisi ngaphambi kokuba kuqhubeke ukusebenza. .
Eyona ndlela ilula yokwenza oku kukufowunelwa kwe-API engabhalwanga
GET https://graph.facebook.com/me?access_token=TOKEN
apho kuVAKWE khona ithokheni yokufikelela, engaphezulu kwama-200 abalinganiswa ubude. Impendulo nokuba yeyimpumelelo
{ "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 }
Isazisi somsebenzisi kufuneka sisetyenziselwe apha ukujonga okokugqibela.
Ngaphandle koko ufumana umyalezo ongacacanga ukuba ayilo phawu olusebenzayo:
{ "error": { "message": "Invalid OAuth access token.", "type": "OAuthException", "code": 190 } }