Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facebook authentication does not work
05-05-2012, 06:09 AM,
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
2 JavaScript attempt to access frame with URL https://www.facebo​m7VhOFZAUsK4P8CWQNc
Cfriends_hometown%2Cfriends_birthday%2Cpublish_stream&sdk=joey from frame with URL 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
Quote: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
I love video chat!

Forum Jump:

Users browsing this thread: 1 Guest(s)