利用Facebook認證登入你的web service
Step1 : 首先先到以下網址去建立應用程式
https://developers.facebook.com/apps/
Step2 : 輸入你的應用程式名稱

Step3 : 因為我們今天是想單純利用FB來做登入認證的驗證,所以選擇Facebook 登入

Step4 : 選擇網站平台

Step5 : 接下來其實FB都會告訴你需要設定甚麼,這邊就單純貼步驟上來



這裡也會說明回傳的狀態參數有哪些



Step6 : 當出現上述的畫面,代表已經設定完成,並把剛剛代碼編成一個網頁

Step7 : 瀏覽此網頁,即會出現一個FB的登入按鈕

Step8 : 進入FB驗證流程

Step9 : 觀察response
A. 取消視窗

B. 已登入FB 但取消驗證視窗

C. 已登入FB且同意驗證視窗

Step10 : 之後web service就可以經由response來設計之後的流程
https://developers.facebook.com/apps/
Step2 : 輸入你的應用程式名稱
Step3 : 因為我們今天是想單純利用FB來做登入認證的驗證,所以選擇Facebook 登入
Step4 : 選擇網站平台
Step5 : 接下來其實FB都會告訴你需要設定甚麼,這邊就單純貼步驟上來
這裡也會說明回傳的狀態參數有哪些
Step6 : 當出現上述的畫面,代表已經設定完成,並把剛剛代碼編成一個網頁
Step7 : 瀏覽此網頁,即會出現一個FB的登入按鈕
Step8 : 進入FB驗證流程
Step9 : 觀察response
A. 取消視窗
B. 已登入FB 但取消驗證視窗
C. 已登入FB且同意驗證視窗
Step10 : 之後web service就可以經由response來設計之後的流程
留言
張貼留言