Facebook authentication does not work

  • I encountered a strange error with facebook authentication (log in to websites with facebook) while working with SVC:

    Domains, protocols and ports must match.

    the complete error displayed by Chrome's Javascript console:

    FB.init has already been called - this could indicate a problem
    connect.facebook.net/en_US/all.js:45Unsafe JavaScript attempt to access frame with URL https://www.facebo
    Cfriends_hometown%2Cfriends_birthday%2Cpublish_stream&sdk=joey from frame with URL http://www.govido.com/. Doma
    ins, protocols and ports must match.

    The solution was something else than expected, wasn't the facebook API nor the php script but a server setting: HTTPS not supported or disabled in libcurl

    [error] => Array
                        [message] => Protocol https not supported or disabled in libcurl
                        [type] => CurlException

    curl is a command line tool for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos…), file transfer resume, proxy tunneling and a busload of other useful tricks.

    Solution: enable HTTPS in libcurl

Log in to reply