Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8593689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:03:02+00:00 2026-06-12T00:03:02+00:00

When i try to request additional permissions from linkedin i do not get any

  • 0

When i try to request additional permissions from linkedin i do not get any permissions list in the dialog except for the basic permisiions. Could any1 point me to the solution. I tried urlencoding the permissions but still not getting any response. Here is my code: I am calling this function on click of ‘Signup with Linkedin’ button.

public function linkedinaccessAction()
{
    $this->_helper->layout->disableLayout();
    $this->_helper->viewRenderer->setNoRender();

    $scope = 'r_basicprofile+r_emailaddress+r_network+r_contactinfo';

    $options = array(
                            'version' => '1.0',
                            'siteUrl' => 'http://localhost/project/development/',
                            'callbackUrl' => 'http://localhost/project/development/signup/linkedinaccess',
                            'requestTokenUrl' => 'https://api.linkedin.com/uas/oauth/requestToken?scope=' . $scope,
                            'userAuthorizationUrl' => 'https://api.linkedin.com/uas/oauth/authorize',
                            'accessTokenUrl' => 'https://api.linkedin.com/uas/oauth/accessToken',
                            'consumerKey' => 'myconsumerkey',
                            'consumerSecret' => 'myconsumersecret'
                        );

    $consumer = new Zend_Oauth_Consumer( $options );


    if (!isset($_SESSION ['LINKEDIN_ACCESS_TOKEN'])){
        if(! empty ( $_GET )){
            //consumer = new Zend_Oauth_Consumer( $options );
            $accessToken = $consumer->getAccessToken ( $_GET, unserialize ( $_SESSION ['LINKEDIN_REQUEST_TOKEN'] ) ); 
            echo $accessToken;
            $_SESSION ['LINKEDIN_ACCESS_TOKEN'] = serialize ( $accessToken );
        }else{
            $requestToken = $consumer->getRequestToken();
            $_SESSION ['LINKEDIN_REQUEST_TOKEN'] = serialize ( $requestToken );
            $consumer->redirect();
        }
    }else{
        $accessToken = unserialize ( $_SESSION ['LINKEDIN_ACCESS_TOKEN'] ); 

        // Use HTTP Client with built-in OAuth request handling
        $client = $accessToken->getHttpClient($options);

        // Set LinkedIn URI
        $client->setUri('https://api.linkedin.com/v1/people/~');
        // Set Method (GET, POST or PUT)
        $client->setMethod(Zend_Http_Client::GET);
        // Get Request Response
        $response = $client->request();

        // Get the XML containing User's Profile
        $content =  $response->getBody();
        print_r($content);
    }

}

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:03:03+00:00Added an answer on June 12, 2026 at 12:03 am

    After rigorous searching finally got the solution from this Linkedin Post

    Need to request linkedin permissions as a part of getRequestToken Call:

    $requestToken = $consumer->getRequestToken(array('scope' =>'r_emailaddress'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I try to get something from local sqlite or from ajax request I
I try to send a request to my server via GET, but qooxdoo sends
I'm try to redirect any request to mydomain.com/video/(.*) to video.mydomain.com/$1. I have the following
Summary: How do I configure my facebook application to request additional information from the
Is there any known way to send a new SOAP request from one servlet
I have tried switching from a previous Post request to a Get request. Which
I've got a simple function to get some additional data based on request.user: def
There is a problem when I try to request contract on iTunes Connect. On
i want to add ?orderBy=countryasc to my current url. I try with Request.Url but
I try to perform a simple POST-request with urllib2. However the servers response indicates

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.