Cov txheej txheem:

Kuv yuav nrhiav tau kuv tus Facebook token nyob qhov twg?
Kuv yuav nrhiav tau kuv tus Facebook token nyob qhov twg?

Video: Kuv yuav nrhiav tau kuv tus Facebook token nyob qhov twg?

Video: Kuv yuav nrhiav tau kuv tus Facebook token nyob qhov twg?
Video: TSIS TU SIAB QHOV KUV TSIS TAU KOJ AB MEM YANG nkauj tawm tshiab 2023 MV 2024, Kaum ib hlis
Anonim

Mus raufacebook .com/tools/explorer thiab hloov Graph API Expolrer nrog lub app koj tau tsim. Nias Tau Token thiab xaiv Get User Access Token . Txheeb xyuas cov kev xaiv uas xav tau ntawm lub qhov rai popup thiab xaiv cov kev tso cai xav tau rau koj lub app. Nias Tau Access Token.

Khaws qhov no hauv kev txiav txim siab, puas yog Facebook nkag mus token tas sijhawm?

Thaum koj lub app siv Facebook ID nkag mus rau authenticate ib tug neeg, nws tau txais a Cov neeg siv nkag mus token . Yog tias koj lub app siv ib qho ntawm cov Facebook SDKs, qhov no token kav ntev li ntawm 60 hnub. Txawm li cas los xij, SDKs cia li hloov kho cov token thaum twg tus neeg siv koj app, yog li cov tokens tas sij hawm 60 hnub tom qab siv kawg.

Tsis tas li ntawd, kev siv token ua haujlwm li cas? Ib nkag mus token yog ib yam khoom encapsulating kev ruaj ntseg tus kheej ntawm ib tug txheej txheem los yog xov. Ib nkag mus token yog tsim los ntawm qhov kev pabcuam logon thaum tus neeg siv nkag mus rau hauv lub kaw lus thiab cov ntaub ntawv pov thawj muab los ntawm tus neeg siv tau lees paub tiv thaiv cov ntaub ntawv pov thawj.

Tsuas yog li ntawd, koj yuav ua li cas thiaj li tau txais kev nkag mus ntev ntev rau hauv Facebook?

  1. Tsim Facebook App ID.
  2. Tau txais tus neeg siv lub sijhawm luv luv nkag token.
  3. Mus rau qhov txuas no.
  4. Muab cov "short-lived access token" rau hauv lub thawv ntawv.
  5. Nyem qhov "Debug" khawm.
  6. Raws li koj yuav pom hauv cov ntsiab lus debug, "short-lived access token" tas sij hawm tom qab ob peb teev.

Kuv yuav rov qab Facebook token li cas?

Refresh Koj Token

  1. Kauj ruam 1: Mus rau: Chaw> Social Networks. Los yog nyem qhov no.
  2. Kauj ruam 2: Nyem "Refresh" khawm rau Facebook.
  3. Kauj ruam 3: Tom qab refreshing, koj yuav tsum pom: tag nrho cov nplooj ntawv koj admin. koj profile. koj cov npe khaws tseg.
  4. KAUJ RUAM 4: Qhov "Refresh" khawm no tseem rov txuas ntxiv app tokens thiab kho feem ntau tshaj tawm yuam kev.

Pom zoo: