Markaad la shaqeyneyso Facebook SDK (si hufan marka la hirgalinayo shaqada gelitaanka Facebook ee dhexdeeda ah REST interface), calaamadda uu macmiilku ka helay Facebook waa in marka hore la hubiyaa inay sax tahay adeegaha ka hor inta aan howlaha la sii wadin. .
Habka ugu fudud ee tan lagu sameyn karaa waa wicitaanka API-ga ee aan sharciga lahayn
GET https://graph.facebook.com/me?access_token=TOKEN
halka TOKEN ay tahay calaamadda marin u helka, oo ka dheer in ka badan 200 oo xaraf. Jawaabtu waa mid jawaab guul ah leh
{ "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 }
Aqoonsiga isticmaale waa in loo adeegsadaa halkan jeegga ugu dambeeya.
Haddii kale waxaad helaysaa farriinta aan muuqan ee ah in aysan ahayn calaamado sax ah:
{ "error": { "message": "Invalid OAuth access token.", "type": "OAuthException", "code": 190 } }