gpraveenonline / simple-linkedinphp

Automatically exported from code.google.com/p/simple-linkedinphp
0 stars 0 forks source link

login with linkedin in opencart using linkedin_3.2.0.class #37

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

Sir
    I am using Opencart 1.5.3 and login with linkedin API. in localhost code run successfully but in opencart, there is problem with QUERY_STRING .
In that code not return callbackurl.
 $_REQUEST[LINKEDIN::_GET_TYPE] return null value 
so plese help me 

// set index
  $_REQUEST[LINKEDIN::_GET_TYPE] = (isset($_REQUEST[LINKEDIN::_GET_TYPE])) ? $_REQUEST[LINKEDIN::_GET_TYPE] : '';
  switch($_REQUEST[LINKEDIN::_GET_TYPE]) {
    case 'initiate':
      /**
       * Handle user initiated LinkedIn connection, create the LinkedIn object.
       */

      // check for the correct http protocol (i.e. is this script being served via http or https)
      if($_SERVER['HTTPS'] == 'on') {
        $protocol = 'https';
      } else {
        $protocol = 'http';
      }

      // set the callback url
     $this->API_CONFIG['callbackUrl'] = $protocol . '://' . $_SERVER['SERVER_NAME'] . ((($_SERVER['SERVER_PORT'] != PORT_HTTP) || ($_SERVER['SERVER_PORT'] != PORT_HTTP_SSL)) ? ':' . $_SERVER['SERVER_PORT'] : '') . $_SERVER['PHP_SELF'] . '?' . LINKEDIN::_GET_TYPE . '=initiate&' . LINKEDIN::_GET_RESPONSE . '=1';
      $this->OBJ_linkedin = new LinkedIn($this->API_CONFIG);

Original issue reported on code.google.com by pradeeps...@gmail.com on 2 Nov 2012 at 10:48

Attachments:

GoogleCodeExporter commented 8 years ago
I have the same problem, any answer??

Original comment by mahmoudz...@gmail.com on 8 May 2013 at 1:33