tepkool01 / simple-linkedinphp

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

I can connect to LinkedinAPI but error says Consumer_Key_Unknown #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use my demo.php as per your constructions
2. click connect to linkedin
3. Error is returned saying consumer_key_unknown

What is the expected output? What do you see instead?
I wanted it to authenticate the install of simple-linkedinphp and Oauth but it 
says my consumer key is unknown. I put the key and secret key in every php file 
where there was an array.. I triple checked and I am using the right keys and 
linked in's site says the project is active.

What version of the product are you using? On what operating system?

3.2.0

Report below:
Array
(
    [linkedin] => Array
        (
            [oauth_problem] => consumer_key_unknown
        )

    [info] => Array
        (
            [url] => https://api.linkedin.com/uas/oauth/requestToken
            [content_type] => application/x-www-form-urlencoded;charset=UTF-8
            [http_code] => 401
            [header_size] => 301
            [request_size] => 532
            [filetime] => -1
            [ssl_verify_result] => 0
            [redirect_count] => 0
            [total_time] => 0.101884
            [namelookup_time] => 0.020598
            [connect_time] => 0.034781
            [pretransfer_time] => 0.081529
            [size_upload] => 0
            [size_download] => 34
            [speed_download] => 333
            [speed_upload] => 0
            [download_content_length] => 34
            [upload_content_length] => 0
            [starttransfer_time] => 0.101832
            [redirect_time] => 0
        )

    [oauth] => Array
        (
            [header] => Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="647d72f1bb2b1ff6ae09f5fe1807eebc",oauth_timestamp="1335456720",oauth_consumer_key="%3Crm8yqt4s3jt5%3E",oauth_callback="http%3A%2F%2Fwww.argagenthq.com%3A80%2Fwp-content%2Flinkedinconnect%2Fdemo.php%3FlType%3Dinitiate%26lResponse%3D1",oauth_signature_method="HMAC-SHA1",oauth_signature="%2Bux2s1BYSJS2CaIGTFqWdUBf0WE%3D"
            [string] => POST&https%3A%2F%2Fapi.linkedin.com%2Fuas%2Foauth%2FrequestToken&oauth_callback%3Dhttp%253A%252F%252Fwww.argagenthq.com%253A80%252Fwp-content%252Flinkedinconnect%252Fdemo.php%253FlType%253Dinitiate%2526lResponse%253D1%26oauth_consumer_key%3D%253Crm8yqt4s3jt5%253E%26oauth_nonce%3D647d72f1bb2b1ff6ae09f5fe1807eebc%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1335456720%26oauth_version%3D1.0
        )

    [error] => OAuth callback URL was not confirmed by the LinkedIn end-point
    [success] => 
)

LINKEDIN OBJ:

LinkedIn Object
(
    [callback:protected] => http://www.argagenthq.com:80/wp-content/linkedinconnect/demo.php?lType=initiate&lResponse=1
    [token:protected] => 
    [application_key:protected] => 
    [application_secret:protected] => 
    [response_format:protected] => xml
    [last_request_headers] => Array
        (
            [0] => Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="647d72f1bb2b1ff6ae09f5fe1807eebc",oauth_timestamp="1335456720",oauth_consumer_key="%3Crm8yqt4s3jt5%3E",oauth_callback="http%3A%2F%2Fwww.argagenthq.com%3A80%2Fwp-content%2Flinkedinconnect%2Fdemo.php%3FlType%3Dinitiate%26lResponse%3D1",oauth_signature_method="HMAC-SHA1",oauth_signature="%2Bux2s1BYSJS2CaIGTFqWdUBf0WE%3D"
            [1] => Content-Type: text/plain; charset=UTF-8
        )

    [last_request_url] => https://api.linkedin.com/uas/oauth/requestToken
)
Please provide any additional information below.

Original issue reported on code.google.com by Neilsl...@gmail.com on 26 Apr 2012 at 4:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Make sure you get rid of the '<' and '>' symbols in the $API_CONFIG associative 
arrays. 

Original comment by andrewtm...@gmail.com on 16 Jul 2012 at 2:01