KuldeepsinhRathod / simple-linkedinphp

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

Error revoking user's token: #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello

Thankyou for the script, much appreciated.

It has been working yesterday and now I cannot revoke autorization or login to 
linkedin.

the output is below.

It works fine on my ipad, but I haven't used it for more than 24 hours on the 
ipad. 

I did delete the cookies on my pc browser IE8

URL:www.mysite.com/3.2.0/demo.php

Error retrieving group membership information: 

RESPONSE:

Array
(
    [linkedin] => 

  401
  1343813721920
  KQAFISQ7CJ
  0
  [unauthorized]. The token used in the OAuth request is not valid. 14ce8174-20d2-4ab5-af72-cfe9c2110787

    [info] => Array
        (
            [url] => https://api.linkedin.com/v1/groups/4010474:(relation-to-viewer:(membership-state))
            [content_type] => text/xml;charset=UTF-8
            [http_code] => 401
            [header_size] => 208
            [request_size] => 480
            [filetime] => -1
            [ssl_verify_result] => 0
            [redirect_count] => 0
            [total_time] => 0.613386
            [namelookup_time] => 0.001972
            [connect_time] => 0.148852
            [pretransfer_time] => 0.455088
            [size_upload] => 0
            [size_download] => 326
            [speed_download] => 531
            [speed_upload] => 0
            [download_content_length] => 326
            [upload_content_length] => 0
            [starttransfer_time] => 0.613303
            [redirect_time] => 0
        )

    [oauth] => Array
        (
            [header] => Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="2115297e24d40a7fd16de137c9c35030",oauth_timestamp="1343813721",oauth_consumer_key="f84286u6sgzg",oauth_token="14ce8174-20d2-4ab5-af72-cfe9c2110787",oauth_signature_method="HMAC-SHA1",oauth_signature="PwXua5tIVQOQLl2XmBk%2FU8nRNKo%3D"
            [string] => GET&https%3A%2F%2Fapi.linkedin.com%2Fv1%2Fgroups%2F4010474%3A%28relation-to-viewer%3A%28membership-state%29%29&oauth_consumer_key%3Df84286u6sgzg%26oauth_nonce%3D2115297e24d40a7fd16de137c9c35030%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1343813721%26oauth_token%3D14ce8174-20d2-4ab5-af72-cfe9c2110787%26oauth_version%3D1.0
        )

    [success] => 
    [error] => HTTP response from LinkedIn end-point was not code 200
)

--------------------------------------------------------------------------------

#################################################################

URL:www.mysite.com/3.2.0/demo.php?lType=revoke

Error revoking user's token:

RESPONSE:

Array
(
    [linkedin] => oauth_problem=signature_invalid&oauth_problem_advice=javax.security.auth.login.LoginException%20while%20obtaining%20request%20token%20for%20%3AGET%26https%253A%252F%252Fapi.linkedin.com%252Fuas%252Foauth%252FinvalidateToken%26oauth_consumer_key%253Df84286u6sgzg%2526oauth_nonce%253Daf03ceabdf9336a5c8b1abdc12f97bfd%2526oauth_signature_method%253DHMAC-SHA1%2526oauth_timestamp%253D1343813598%2526oauth_token%253D14ce8174-20d2-4ab5-af72-cfe9c2110787%2526oauth_version%253D1.0%0AThe%20token%20used%20in%20the%20OAuth%20request%20is%20not%20valid.%2014ce8174-20d2-4ab5-af72-cfe9c2110787
    [info] => Array
        (
            [url] => https://api.linkedin.com/uas/oauth/invalidateToken
            [content_type] => application/x-www-form-urlencoded;charset=UTF-8
            [http_code] => 401
            [header_size] => 885
            [request_size] => 446
            [filetime] => -1
            [ssl_verify_result] => 0
            [redirect_count] => 0
            [total_time] => 0.613946
            [namelookup_time] => 0.002175
            [connect_time] => 0.148786
            [pretransfer_time] => 0.45421
            [size_upload] => 0
            [size_download] => 582
            [speed_download] => 947
            [speed_upload] => 0
            [download_content_length] => 582
            [upload_content_length] => 0
            [starttransfer_time] => 0.613799
            [redirect_time] => 0
        )

    [oauth] => Array
        (
            [header] => Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="af03ceabdf9336a5c8b1abdc12f97bfd",oauth_timestamp="1343813598",oauth_consumer_key="f84286u6sgzg",oauth_token="14ce8174-20d2-4ab5-af72-cfe9c2110787",oauth_signature_method="HMAC-SHA1",oauth_signature="4mfdlwV60bQnhlVANXb8A3zpS5k%3D"
            [string] => GET&https%3A%2F%2Fapi.linkedin.com%2Fuas%2Foauth%2FinvalidateToken&oauth_consumer_key%3Df84286u6sgzg%26oauth_nonce%3Daf03ceabdf9336a5c8b1abdc12f97bfd%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1343813598%26oauth_token%3D14ce8174-20d2-4ab5-af72-cfe9c2110787%26oauth_version%3D1.0
        )

    [success] => 
    [error] => HTTP response from LinkedIn end-point was not code 200
)

################################################################

Thankyou

jason

Original issue reported on code.google.com by jasonpqu...@gmail.com on 1 Aug 2012 at 9:42

GoogleCodeExporter commented 9 years ago
Hi 

I tried it on chrome and it works fine, 

I deleted the temp internet files on IE8 and it still not working.

Original comment by jasonpqu...@gmail.com on 1 Aug 2012 at 10:15

GoogleCodeExporter commented 9 years ago
Hello,

I Am getting the strange error only with the newly created api keys.

After getting the successful authentication when i try to fetch my connections 
then i get the below error:

  [linkedin] => <!--?xml version="1.0" encoding="UTF-8" standalone="yes"?-->
<error>
  <status>403</status>
  <timestamp>1344837036331</timestamp>
  <request-id>DDDKZPTS7B</request-id>
  <error-code>0</error-code>
  <message>Access to connections denied</message>
</error>

    [info] => Array
        (
            [url] => https://api.linkedin.com/v1/people/~/connections
            [content_type] => text/xml;charset=UTF-8
            [http_code] => 403
            [header_size] => 205
            [request_size] => 446
            [filetime] => -1
            [ssl_verify_result] => 0
            [redirect_count] => 0
            [total_time] => 0.348675
            [namelookup_time] => 2.2E-5
            [connect_time] => 0.079916
            [pretransfer_time] => 0.244212
            [size_upload] => 0
            [size_download] => 252
            [speed_download] => 722
            [speed_upload] => 0
            [download_content_length] => 252
            [upload_content_length] => 0
            [starttransfer_time] => 0.348642
            [redirect_time] => 0
            [certinfo] => Array
                (
                )

        )

    [oauth] => Array
        (
            [header] => Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="c98a961065d4d1abde01274b715c3df1",oauth_timestamp="1344837036",oauth_consumer_key="d2y5nveddt79",oauth_token="c2a9285c-806a-4578-ba09-5f912767ed6b",oauth_signature_method="HMAC-SHA1",oauth_signature="IWpJJx%2FllwWUpRb9fQ9DLgCg00Q%3D"
            [string] => GET&https%3A%2F%2Fapi.linkedin.com%2Fv1%2Fpeople%2F~%2Fconnections&oauth_consumer_key%3Dd2y5nveddt79%26oauth_nonce%3Dc98a961065d4d1abde01274b715c3df1%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1344837036%26oauth_token%3Dc2a9285c-806a-4578-ba09-5f912767ed6b%26oauth_version%3D1.0
        )

    [success] => 
    [error] => HTTP response from LinkedIn end-point was not code 200
)

If i use my old api keys then it works fine but as i need new api keys for my 
new domain then it's giving me error. 

Help will be much appreciated. Please help me on this issue.

Thanks,

Dinesh

Original comment by mangal.d...@gmail.com on 13 Aug 2012 at 5:56

GoogleCodeExporter commented 9 years ago
Hello guys,

I am also getting the 403 error with new API keys afetr authentication on 
linkedIn.

Here is the full error:

Array ( [linkedin] => 403 1345443302947 OVHTDEWTNR 0 Access to connections 
denied [info] => Array ( [url] => 
https://api.linkedin.com/v1/people/~/connections:(id,first-name,last-name,pictur
e-url) [content_type] => text/xml;charset=UTF-8 [http_code] => 403 
[header_size] => 205 [request_size] => 482 [filetime] => -1 [ssl_verify_result] 
=> 0 [redirect_count] => 0 [total_time] => 0.174071 [namelookup_time] => 
0.00187 [connect_time] => 0.036673 [pretransfer_time] => 0.12074 [size_upload] 
=> 0 [size_download] => 252 [speed_download] => 1447 [speed_upload] => 0 
[download_content_length] => 252 [upload_content_length] => 0 
[starttransfer_time] => 0.173994 [redirect_time] => 0 ) [oauth] => Array ( 
[header] => Authorization: OAuth 
realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="b4640c6f9
d9a362be8fe80facd5959ff",oauth_timestamp="1345443302",oauth_consumer_key="1fwcbe
wjvpzt",oauth_token="8d2a6e79-ef5f-4bf5-8804-51d46bb61587",oauth_signature_metho
d="HMAC-SHA1",oauth_signature="LJleBIwTmdmVv6jknRLTjYByzWM%3D" [string] => 
GET&https%3A%2F%2Fapi.linkedin.com%2Fv1%2Fpeople%2F~%2Fconnections%3A%28id%2Cfir
st-name%2Clast-name%2Cpicture-url%29&oauth_consumer_key%3D1fwcbewjvpzt%26oauth_n
once%3Db4640c6f9d9a362be8fe80facd5959ff%26oauth_signature_method%3DHMAC-SHA1%26o
auth_timestamp%3D1345443302%26oauth_token%3D8d2a6e79-ef5f-4bf5-8804-51d46bb61587
%26oauth_version%3D1.0 ) [error] => HTTP response from LinkedIn end-point was 
not code 200 [success] => )

The API works fine if I use old keys.Is there anything that is changed? Do we 
need to add something else now?
Help will be much appreciated. Please help me on this issue.

Thanks,
Vaishali

Original comment by vaishal...@tekdi.net on 20 Aug 2012 at 6:30

GoogleCodeExporter commented 9 years ago
I have a this problem i need you help!!. Thanks

Request token retrieval failed:

RESPONSE:

Array
(
    [linkedin] => Array
        (
            [oauth_problem] => consumer_key_rejected
        )

    [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] => 334
            [request_size] => 506
            [filetime] => -1
            [ssl_verify_result] => 20
            [redirect_count] => 0
            [total_time] => 0.781
            [namelookup_time] => 0
            [connect_time] => 0.219
            [pretransfer_time] => 0.578
            [size_upload] => 0
            [size_download] => 35
            [speed_download] => 44
            [speed_upload] => 0
            [download_content_length] => 35
            [upload_content_length] => 0
            [starttransfer_time] => 0.781
            [redirect_time] => 0
            [certinfo] => Array
                (
                )

            [redirect_url] => 
        )

    [oauth] => Array
        (
            [header] => Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="0ef8b25350e4ac9c1fbe39ee6cddc2b5",oauth_timestamp="1347632483",oauth_consumer_key="au584m67u3d4",oauth_callback="http%3A%2F%2F192.168.1.167%3A80%2FlinkedinApi%2Fdemo.php%3FlType%3Dinitiate%26lResponse%3D1",oauth_signature_method="HMAC-SHA1",oauth_signature="ONhqAA58cGYMF%2F%2BXX7m082p7OD0%3D"
            [string] => POST&https%3A%2F%2Fapi.linkedin.com%2Fuas%2Foauth%2FrequestToken&oauth_callback%3Dhttp%253A%252F%252F192.168.1.167%253A80%252FlinkedinApi%252Fdemo.php%253FlType%253Dinitiate%2526lResponse%253D1%26oauth_consumer_key%3Dau584m67u3d4%26oauth_nonce%3D0ef8b25350e4ac9c1fbe39ee6cddc2b5%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1347632483%26oauth_version%3D1.0
        )

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

LINKEDIN OBJ:

LinkedIn Object
(
    [callback:protected] => http://192.168.1.167:80/linkedinApi/demo.php?lType=initiate&lResponse=1
    [token:protected] => 
    [application_key:protected] => au584m67u3d4
    [application_secret:protected] => M8e5YwLMDqut6Nj6
    [response_format:protected] => xml
    [last_request_headers] => Array
        (
            [0] => Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="0ef8b25350e4ac9c1fbe39ee6cddc2b5",oauth_timestamp="1347632483",oauth_consumer_key="au584m67u3d4",oauth_callback="http%3A%2F%2F192.168.1.167%3A80%2FlinkedinApi%2Fdemo.php%3FlType%3Dinitiate%26lResponse%3D1",oauth_signature_method="HMAC-SHA1",oauth_signature="ONhqAA58cGYMF%2F%2BXX7m082p7OD0%3D"
            [1] => Content-Type: text/plain; charset=UTF-8
        )

    [last_request_url] => https://api.linkedin.com/uas/oauth/requestToken
)

Original comment by tradeit...@gmail.com on 14 Sep 2012 at 2:22

GoogleCodeExporter commented 9 years ago
Hello i have problem with i can't import my connection 

Your Connections:

Array ( [linkedin] => 401 1356300682171 5O4SAMM2JK 0 OAuth parameters should 
not contain spaces [info] => Array ( [url] => 
https://api.linkedin.com/v1/people/~/connections:(id,first-name,last-name,pictur
e-url)?start=0&count=20 [content_type] => text/xml;charset=UTF-8 [http_code] => 
401 [header_size] => 208 [request_size] => 524 [filetime] => -1 
[ssl_verify_result] => 20 [redirect_count] => 0 [total_time] => 5 
[namelookup_time] => 0 [connect_time] => 3.484 [pretransfer_time] => 4.547 
[size_upload] => 0 [size_download] => 266 [speed_download] => 53 [speed_upload] 
=> 0 [download_content_length] => 266 [upload_content_length] => 0 
[starttransfer_time] => 5 [redirect_time] => 0 [certinfo] => Array ( ) 
[redirect_url] => ) [oauth] => Array ( [header] => Authorization: OAuth 
realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="cad700443
99e30fa314c18fcd690b27a",oauth_timestamp="1356300673",oauth_consumer_key="%3Cyou
r%20application%20key%20here%3E",oauth_token="90ace3a9-5a5e-4da5-8f39-63ff6d0aa5
4a",oauth_signature_method="HMAC-SHA1",oauth_signature="YfjzIFNuG9ZRJdOSADzRjQer
n04%3D" [string] => 
GET&https%3A%2F%2Fapi.linkedin.com%2Fv1%2Fpeople%2F~%2Fconnections%3A%28id%2Cfir
st-name%2Clast-name%2Cpicture-url%29&count%3D20%26oauth_consumer_key%3D%253Cyour
%2520application%2520key%2520here%253E%26oauth_nonce%3Dcad70044399e30fa314c18fcd
690b27a%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1356300673%26oa
uth_token%3D90ace3a9-5a5e-4da5-8f39-63ff6d0aa54a%26oauth_version%3D1.0%26start%3
D0 ) [success] => [error] => HTTP response from LinkedIn end-point was not code 
200 ) Error retrieving connections:

RESPONSE:

1

Original comment by ali.elma...@gmail.com on 23 Dec 2012 at 10:15

GoogleCodeExporter commented 9 years ago
I am also getting issue of 403 permission to share is not authorized

Original comment by maheshch...@gmail.com on 25 Jan 2013 at 7:20