Options
Again UniqueID is required. Facebook oauth login problem.
I've got the same problem as discussed before but I can't solve it
vanilla 2.1.1
Tried:
1. * Facebook dev app - not in sandbox mode and set in website mode with urls
2. * correct values of Application ID & Application Secret
3. * checked php enabled cUrl, enabled OpenSSL
4. * updated in class.facebook.plugin.php as said here
public function GetProfile($AccessToken) { $Url = "https://graph.facebook.com/me?access_token=$AccessToken"; // $C = curl_init(); // curl_setopt($C, CURLOPT_RETURNTRANSFER, TRUE); // curl_setopt($C, CURLOPT_SSL_VERIFYPEER, FALSE); // curl_setopt($C, CURLOPT_URL, $Url); // $Contents = curl_exec($C); // $Contents = ProxyRequest($Url); $Contents = $this->file_get_contents_curl($Url); $Profile = json_decode($Contents, TRUE); return $Profile; } function file_get_contents_curl($url) { $ch = curl_init($url); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set curl to return the data instead of printing it to the browser. curl_setopt($ch, CURLOPT_URL, $url); $data = curl_exec($ch); curl_close($ch); return $data; }
Still got that UniqueID is required.
I'm stuck.
Tagged:
0
Comments
I do not have much experience with Facebook connect, but I know there is that blog entry: http://blog.vanillaforums.com/facebook-application-for-vanillaforums-sso/
Some more general considerations: you have chosen the wrong category "Vanilla 2.0" for your Vanilla 2.1 question and I would be very doubtful that solutions from 2011 could be helpful for current problems.
Yes I have Facebook app set. Sorry about wrong version