0
我讀過http://developers.facebook.com/docs/howtos/link-to-your-native-app/,我很困惑我如何在3.0中處理深度鏈接。假設用戶點擊了我的應用程序的appRequest,FB用特殊的URL打開我的應用程序。我有我的appDelegate的OpenURL方法做:Facebook中的深度鏈接和FBSessionDelegate iOS SDK 3.0
return [FBSession.activeSession handleOpenURL:url];
的教程說:
If your app requires an authorized user, handle the processing of the target URL in the
SDK callbacks implemented after a successful login, the fbDidLogin method.
然而,fbDidLogin委託方法不再是因爲在3.0叫我們切換到使用FBSession.activeSession而不是使用facebook.m對象。事實上,沒有任何FBSessionDelegate方法會被調用,因爲facebook對象的狀態從不改變。那麼我應該在哪裏處理URL?