2016-11-09 3 views
0

Nach einer Woche der Forschung kann ich einfach nicht diesen Fehler beheben:iOS 10 Facebook graph.facebook.com SSL-Fehler - FBSDK sichere Netzwerkanforderung fehlgeschlagen

Ein SSL-Fehler aufgetreten ist und eine sichere Verbindung zum Server kann nicht hergestellt werden .

_kCFStreamErrorCodeKey=-9802 
NSErrorFailingURLStringKey=https://graph.facebook.com/v2.5 
_kCFStreamErrorDomainKey=3 

Snippet von Info.plist:

<?xml version="1.0" encoding="UTF-8"?> 
<key>keychain-access-groups</key> 
<array> 
    <string>$(AppIdentifierPrefix)APP_ID</string> 
</array> 
<key>LSApplicationQueriesSchemes</key> 
<array> 
    <string>fbapi</string> 
    <string>fbapi20130214</string> 
    <string>fbapi20130410</string> 
    <string>fbapi20130702</string> 
    <string>fbapi20131010</string> 
    <string>fbapi20131219</string> 
    <string>fbapi20140410</string> 
    <string>fbapi20140116</string> 
    <string>fbapi20150313</string> 
    <string>fbapi20150629</string> 
    <string>fbauth</string> 
    <string>fbauth2</string> 
    <string>graph</string> 
    <string>fb-messenger-api20140430</string> 
    <string>fb-messenger-api</string> 
    <string>fbshareextension</string> 
    <string>fb-messenger-platform-20150128</string> 
    <string>fb-messenger-platform-20150218</string> 
    <string>fb-messenger-platform-20150305</string> 
</array> 
<key>NSAppTransportSecurity</key> 
<dict> 
    <key>NSAllowsArbitraryLoads</key> 
    <true /> 
    <key>NSExceptionDomains</key> 
    <dict> 
    <key>facebook.com</key> 
    <dict> 
     <key>NSIncludesSubdomains</key> 
     <true /> 
     <key>NSExceptionRequiresForwardSecrecy</key> 
     <false /> 
     <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> 
     <true /> 
     <key>NSTemporaryExceptionMinimumTLSVersion</key> 
     <string>TLSv1.2</string> 
    </dict> 
    <key>fbcdn.net</key> 
    <dict> 
     <key>NSIncludesSubdomains</key> 
     <true /> 
     <key>NSExceptionRequiresForwardSecrecy</key> 
     <false /> 
    </dict> 
    <key>akamaihd.net</key> 
    <dict> 
     <key>NSIncludesSubdomains</key> 
     <true /> 
     <key>NSExceptionRequiresForwardSecrecy</key> 
     <false /> 
    </dict> 
    </dict> 
</dict> 

Ich habe auch Schlüsselanhänger Freigabe aktiviert.

Ich glaube, ich habe alle Lösungen im Internet versucht und immer noch kein Glück.

Jede Hilfe würde sehr geschätzt werden.

Antwort

0

Also nachdem ich, während ich denke, fand ich die Antwort auf den Fehler.

Ich habe Profilbild von Graph API mit https geladen und es sollte über http geladen werden.

Beispiel:

https://graph.facebook.com/facebook_user_id/picture?type=large 

Sollte

http://graph.facebook.com/facebook_user_id/picture?type=large 

Hinweis die s von https-Protokoll fehlt, was der entscheidende Unterschied war.

Verwandte Themen