2017-04-12 76 views

回答

3

經過一番研究,我發現這個blog post,這github issuepull request

現在我固定更換此功能getAccessToken()

if (strpos(val('content_type', $Info, ''), '/javascript') !== false) { 
     $Tokens = json_decode($Contents, true); 
    } else { 
     parse_str($Contents, $Tokens); 
    } 

與此:

if (strpos(val('content_type', $Info, ''), '/javascript') !== false) { 
     $Tokens = json_decode($Contents, true); 
    } else if (strpos(val('content_type', $Info, ''), '/json') !== false) { 
     $Tokens = json_decode($Contents, true); 
    } else { 
     parse_str($Contents, $Tokens); 
    } 

是因爲拉請求日前被合併了,下一個版本應該解決這個問題。

+0

這解決了它,謝謝。簡單地說就是從FB返回數據的格式。 – tribulant