I-Facebook SDK: Bheka amathokheni ohlangothini lweseva

Lapho usebenza ne-Facebook SDK (ngokunembile lapho ufaka umsebenzi wokungena ngemvume ku-Facebook ngaphakathi kwe-REST interface), ithokheni iklayenti elitholile ku-Facebook kufanele liqale lihlolwe ukuthi lisebenza yini yiseva ngaphambi kokuthi kuqhutshekwe neminye imisebenzi .


Indlela elula yokwenza lokhu ngocingo lwe-API olungenawo amaphepha

GET https://graph.facebook.com/me?access_token=TOKEN

lapho kuTHOKWE khona ithokheni lokufinyelela elishiwoyo, elingaphezulu kwezinhlamvu ezingama-200 ubude. Impendulo kungaba yimpumelelo

{
   "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
}

I-ID yomsebenzisi kufanele isetshenziselwe lapha ukuthola isheke lokugcina.

Ngaphandle kwalokho uthola umlayezo ongabonakali wokuthi akuyona ithokheni evumelekile:

{
   "error": {
      "message": "Invalid OAuth access token.",
      "type": "OAuthException",
      "code": 190
   }
}
Emuva