2014-02-06 49 views
0

我已經使用Facebook PHP SDK爲我的網頁創建Facebook登錄。它的工作原理應該如此。Facebook PHP SDK getUser()CKR_DEVICE_ERROR

昨天和上個星期四之間的一段時間,它突然停止工作。代碼沒有改變。爲了消除任何我可能犯的錯誤,我創建了一個測試腳本,只有登錄的基礎知識 - 實際上只是複製了SDK中的登錄示例。

此腳本顯示相同的問題。在StackOverflow上進行一些挖掘,給了我打算從base_facebook.php中的getAccessTokenFromCode()中引發的異常中打印數組的想法。

數組包含此:

FacebookApiException Object ( 
       [result:protected] => Array ( 
       [error_code] => 35 
       [error] => Array ( 
         [message] => A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot. 
         [type] => CurlException 
         ) 
       ) 
       [message:protected] => A PKCS #11 module returned CKR_DEVICE_ERROR, indicating that a problem has occurred with the token or slot. 
       [string:Exception:private] => [code:protected] => 35 

我只是在這裏大約哪裏找一個損失,所以任何提示或幫助將不勝感激了很多。

回答

0

哦,快樂的一天!

服務器運行在Fedora 19。我注意到,我無法更新到捲曲的最新版本,所以只深挖任何可能性,我決定更新到Fedora 20

而這個固定的問題。我猜舊版本的CURL中爆發了一些問題,並且只能在Fedora 20的可用版本中修復。

相關問題