dnzengou / simple-linkedinphp Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/simple-linkedinphp
Automatically exported from code.google.com/p/simple-linkedinphp
my application working perfectly on localhost..
on my main server when i click to "connect to linkedin button" it dosnt show
any action..
instead of that if i am using post method it going for auth but not returning
values properly...
My main server is configured perfectly..
when i click "connect to linkedin" with get method.. it show url like this:-
www.mydomain.com/invite?type=initiate
please with your appropriate answer
Does i need any thng to install becz i am already using php 5 and curl as per
your given instruction...
Original issue reported on code.google.com by [email protected]
on 4 Jan 2012 at 7:30
Hello,I have developed a small application (with the help of demo.php
tutorial) which works fine on a localhost but gives me following error when I
run it on my UAT domain/website (all our linux servers are synchronized with
NTP servers) Can you help me please:
Request token retrieval failed:
RESPONSE:
Array
(
[linkedin] => Array
(
)
[info] => Array
(
[url] => https://api.linkedin.com/uas/oauth/requestToken
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0
[namelookup_time] => 0
[connect_time] => 0
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
)
[oauth] => Array
(
[header] => Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="899e6ee7ce175ccd3733321de9d0a9b4",oauth_timestamp="1354617905",oauth_consumer_key="t9nrgylfl7w3",oauth_callback="http%3A%2F%2Frecette.expectra.fr%3A80%2Fdemo2.php%3FlType%3Dinitiate%26lResponse%3D1",oauth_signature_method="HMAC-SHA1",oauth_signature="8baSbEXQ%2BmsiEnNmQAKYtlgpoCI%3D"
[string] => POST&https%3A%2F%2Fapi.linkedin.com%2Fuas%2Foauth%2FrequestToken&oauth_callback%3Dhttp%253A%252F%252Frecette.expectra.fr%253A80%252Fdemo2.php%253FlType%253Dinitiate%2526lResponse%253D1%26oauth_consumer_key%3Dt9nrgylfl7w3%26oauth_nonce%3D899e6ee7ce175ccd3733321de9d0a9b4%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1354617905%26oauth_version%3D1.0
)
[error] => OAuth callback URL was not confirmed by the LinkedIn end-point
[success] =>
)
LINKEDIN OBJ:
LinkedIn Object
(
[callback:protected] => http://recette.expectra.fr:80/demo2.php?lType=initiate&lResponse=1
[token:protected] =>
[application_key:protected] => <MYKEY>
[application_secret:protected] => <MYSECRET>
[response_format:protected] => xml
[last_request_headers] => Array
(
[0] => Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="899e6ee7ce175ccd3733321de9d0a9b4",oauth_timestamp="1354617905",oauth_consumer_key="t9nrgylfl7w3",oauth_callback="http%3A%2F%2Frecette.expectra.fr%3A80%2Fdemo2.php%3FlType%3Dinitiate%26lResponse%3D1",oauth_signature_method="HMAC-SHA1",oauth_signature="8baSbEXQ%2BmsiEnNmQAKYtlgpoCI%3D"
[1] => Content-Type: text/plain; charset=UTF-8
)
[last_request_url] => https://api.linkedin.com/uas/oauth/requestToken
)
Original issue reported on code.google.com by [email protected]
on 4 Dec 2012 at 10:55
What steps will reproduce the problem?
1. Installed and downloaded all files
2. Created an empty php file
3. Imported code (require_once('linkedin_3.2.0.class.php');)
What is the expected output? What do you see instead?
Expected the page to stay empty since the file was successfully loaded, but I
get a weird error:
Parse error: syntax error, unexpected T_FUNCTION in
/home/simichae/public_html/websites/linkedin/linkedin_3.2.0.class.php on line
259
What version of the product are you using? On what operating system?
3.2.0 (latest)
Please provide any additional information below.
I am a newbie so I am sure I am doing something wrong but I have no idea what
that is.
Sorry to bug, I'll understand if you can't help.
Thanks,
Michael.
Original issue reported on code.google.com by [email protected]
on 8 Dec 2011 at 3:06
I installed the library after checking the demo page you host.
The connection happens perfectly, I'm asked to authorize, but then all request
fails because of space.
E.g. I get this for company (same for all other requests)
"
Company API:
Specific Company:
All about LinkedIn via the Company API:
Array ( [linkedin] => 401 1341934949919 6RZJY1J9N9 0 OAuth parameters should
not contain spaces [info] => Array ( [url] =>
https://api.linkedin.com/v1/companies/1337:(id,name,ticker,description,logo-url,
locations:(address,is-headquarters)) [content_type] => text/xml;charset=UTF-8
[http_code] => 401 [header_size] => 208 [request_size] => 539 [filetime] => -1
[ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.65898
[namelookup_time] => 0.021057 [connect_time] => 0.178369 [pretransfer_time] =>
0.499685 [size_upload] => 0 [size_download] => 266 [speed_download] => 403
[speed_upload] => 0 [download_content_length] => 266 [upload_content_length] =>
0 [starttransfer_time] => 0.658835 [redirect_time] => 0 ) [oauth] => Array (
[header] => Authorization: OAuth
realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="9f7f1003d
de7bac15b5fb8c46cc21252",oauth_timestamp="1341934949",oauth_consumer_key="%3Cyou
r%20application%20key%20here%3E",oauth_token="192dc8bd-4b67-4596-9a66-bb3f4803ab
fe",oauth_signature_method="HMAC-SHA1",oauth_signature="8FTSEPCRiw3dV2EwzvOD%2Fy
CHQcc%3D" [string] =>
GET&https%3A%2F%2Fapi.linkedin.com%2Fv1%2Fcompanies%2F1337%3A%28id%2Cname%2Ctick
er%2Cdescription%2Clogo-url%2Clocations%3A%28address%2Cis-headquarters%29%29&oau
th_consumer_key%3D%253Cyour%2520application%2520key%2520here%253E%26oauth_nonce%
3D9f7f1003dde7bac15b5fb8c46cc21252%26oauth_signature_method%3DHMAC-SHA1%26oauth_
timestamp%3D1341934949%26oauth_token%3D192dc8bd-4b67-4596-9a66-bb3f4803abfe%26oa
uth_version%3D1.0 ) [success] => [error] => HTTP response from LinkedIn
end-point was not code 200 ) Error retrieving company information:
RESPONSE:
1
"
Any idea?
Original issue reported on code.google.com by [email protected]
on 10 Jul 2012 at 3:47
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Mar 2013 at 2:09
What steps will reproduce the problem?
1. Share a new update in LinkedIn
2. Add more than 10 comments to the new update
3. Call comments($uid) function with the $uid return by updates($options =
NULL, $id = NULL)
What is the expected output? What do you see instead?
I want to get all of the comments associate with the new update in LinkedIn.
But I get only part of the comments, less than 10 comments.
What version of the product are you using? On what operating system?
I use 3.1.1 on Win7
Please provide any additional information below.
I have read the API document in developer.linkedin.com, and I know we can add
parameter called "start" & "count" to the API call link. I have tried it, but
it does not always work, I mean sometime I just get "<total="0">".
Original issue reported on code.google.com by [email protected]
on 10 Nov 2011 at 6:33
I was check this api in localhost but its notworking shows below error
It shows the error LinkedIn->fetch(): connection was closed unexpectedly with
endpoint.
thanks in advance
Original issue reported on code.google.com by [email protected]
on 13 Jan 2012 at 1:01
What steps will reproduce the problem?
1. Getting Error on Post SHaring.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
3.2.0 on windows 7
Please provide any additional information below.
Error sharing content:
RESPONSE:
Array
(
[linkedin] =>
403
1355132887475
TC8BT742H2
0
Access to posting shares denied
Original issue reported on code.google.com by [email protected]
on 10 Dec 2012 at 9:53
What steps will reproduce the problem?
1. Folloing you example to post to linkedin
2.
3.
What is the expected output? What do you see instead?
I am gettin: 401 [unauthorized]. Same authorization with GET method is working
fine.
What version of the product are you using? On what operating system?
lates: 3.3.0
Please provide any additional information below.
Try it the demo on your page. same error. Can you post a fix??? thank you in
advanced
Original issue reported on code.google.com by [email protected]
on 2 Jan 2012 at 9:45
When retrieving users group membership is not enough to request
membership-state=member,
because the results is empty if user is OWNER of a group.
I suggest requesting multiple states:
membership-state=member&membership-state=owner
Also in this request we have count and start values.
I suggest the full request string as:
membership-state=member&membership-state=owner&count='.$count.'&start='.$start
and in this case function params could be:
public function groupMemberships($options='', $count=10, $start=0) {
...
}
Original issue reported on code.google.com by [email protected]
on 9 Jan 2013 at 11:27
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
geting erro 403 Access to posting shares denied
What version of the product are you using? On what operating system?
3.2 on linux apache php 5
Please provide any additional information below.
The code for authentication is working perferct.but not for sharing
Your help will really help. as there are other people looking for the solution
of this problem
Original issue reported on code.google.com by [email protected]
on 7 Sep 2012 at 2:20
What steps will reproduce the problem?
1. use the simple-linkedinphp demo code
2. click connect to linkedin
3.
What is the expected output? What do you see instead?
- should be redirected to the page where it says you are connected
What version of the product are you using? On what operating system?
- 3.2.0
- linux
- libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Please provide any additional information below.
- request token retrieval failed
- [error] => OAuth callback URL was not confirmed by the LinkedIn end-point
Original issue reported on code.google.com by [email protected]
on 26 Sep 2012 at 5:43
What steps will reproduce the problem?
1. Instantiate v3.3.0 of the library.
2. Call deprecated comment() method.
What is the expected output? What do you see instead?
comment() should point to new createUpdateComment() method, calling it.
Instead, it points to a non-existent method, generating an error.
What version of the product are you using? On what operating system?
Version 3.3.0.
Please provide any additional information below.
As the comment() method is deprecated, this is not a high-priority fix, but
will be fixed shortly in version 3.3.1.
Original issue reported on code.google.com by [email protected]
on 15 Dec 2011 at 3:40
1. How to fetch education field ?
2. I am fetching according to linkedin profile api field but it's not giving
data.
3. Please solve this
Original issue reported on code.google.com by [email protected]
on 21 Aug 2012 at 7:03
Server error
The website encountered an error while retrieving http://mydomainname/invite.
It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
when i tested my code on localhost it working perfect but not on my server..
It show above erroe..
I install php 5+ and curl install in my server..
regards,
Kevin
Original issue reported on code.google.com by [email protected]
on 13 Dec 2011 at 2:42
What steps will reproduce the problem?
1. Upload 3.1.1 library to server along with OAuth.php
2. Load demo.php (either directly or via ajax)
3.
What is the expected output? What do you see instead?
Expect to see a page similar to http://www.simplelinkedin.com/
Instead I get nothing. Chrome console log says:
Failed to load resource: the server responded with a status of 500 (Internal
Server Error)
The server error log says:
[12-Feb-2012 20:35:09] PHP Parse error: syntax error, unexpected T_STRING in
/pathtofile/46LIAPIwrappertest/linkedin_3.1.1.class.php on line 1
What version of the product are you using? On what operating system?
3.1.1. Server is running PHP 5.2.17 with cURL library installed
localhost is Win7 running PHP 5.2.17 with cURL
Please provide any additional information below.
Other php scripts run fine and I've used the $_SESSION array before without any
problems. I guess it's something to do with php.ini? Maybe something to do
with write access?
Original issue reported on code.google.com by [email protected]
on 13 Feb 2012 at 3:15
Linkedin provides an authorization endpoint that behaves a little differently
than the auth endpoint. It will always display a linked.com page that asks the
user to confirm authorization.
Clients should be able to use this too, simply need to add the line:
const _URL_AUTHORIZE =
'https://www.linkedin.com/uas/oauth/authorize?oauth_token=';
under the linkedin API Endpoints
Original issue reported on code.google.com by [email protected]
on 2 Dec 2011 at 7:51
For once, it needs to support the new scope authentication parameter:
https://developer.linkedin.com/documents/authentication
Original issue reported on code.google.com by [email protected]
on 9 Aug 2012 at 3:01
What steps will reproduce the problem?
1. Install
2. Try accessing jobsPosting.php
What is the expected output? What do you see instead?
Parse error: syntax error, unexpected ':', expecting ']' in
/Users/xxxx/Sites/jobsPosting.php on line 192
What version of the product are you using? On what operating system?
Mac OS X
Please provide any additional information below.
THe only change i have made to the jobsPosting.php is that i have added API key
information.
Original issue reported on code.google.com by [email protected]
on 5 Jan 2012 at 1:14
Post any lengthy comment in any non-Latin language and you'll eventually get
"comment is too long" error message. This happens, because length is determined
with strlen(). however it should be mb_strlen().
But that's not enough, because some lines like this one don't contain substr()
function, which is pretty necessary:
$comment =
htmlspecialchars(trim(strip_tags(stripslashes($content['comment']))));
If htmlspecialchars() converts some characters, then 700 char message will get
extra chars and you'll get the same error.
Original issue reported on code.google.com by [email protected]
on 13 Mar 2013 at 8:28
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 [email protected]
on 2 Nov 2012 at 10:48
Attachments:
What steps will reproduce the problem?
1. Set tuser token like this : $linkedin->setTokenAccess(array('oauth_token' =>
$token, 'oauth_token_secret' => ""));
2. Perform request to get user profile: $linkedin->profile("~");
3. get the error
What is the expected output? What do you see instead?
Expecting to get the user's profile. Instead get an error saying:
OAuth exception caught: Arrays not supported in headers.
#0 /www/APIO/library/linkedin/linkedin_3.2.0.class.php(1676):
LinkedIn->fetch('GET', 'https://api.lin...')
#1 /www/APIO/module/Api/src/Api/Controller/AccountController.php(146):
LinkedIn->profile('~:(id,first-nam...')
#2
/www/APIO/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Abstrac
tRestfulController.php(382): Api\Controller\AccountController->update('1',
Array)
#3 [internal function]:
Zend\Mvc\Controller\AbstractRestfulController->onDispatch(Object(Zend\Mvc\MvcEve
nt))
#4
/www/APIO/vendor/zendframework/zendframework/library/Zend/EventManager/EventMana
ger.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#5
/www/APIO/vendor/zendframework/zendframework/library/Zend/EventManager/EventMana
ger.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch',
Object(Zend\Mvc\MvcEvent), Object(Closure))
#6
/www/APIO/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Abstrac
tController.php(117): Zend\EventManager\EventManager->trigger('dispatch',
Object(Zend\Mvc\MvcEvent), Object(Closure))
#7
/www/APIO/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Abstrac
tRestfulController.php(259):
Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment
\Request), Object(Zend\Http\PhpEnvironment\Response))
#8
/www/APIO/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.p
hp(114):
Zend\Mvc\Controller\AbstractRestfulController->dispatch(Object(Zend\Http\PhpEnvi
ronment\Request), Object(Zend\Http\PhpEnvironment\Response))
#9 [internal function]:
Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#10
/www/APIO/vendor/zendframework/zendframework/library/Zend/EventManager/EventMana
ger.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#11
/www/APIO/vendor/zendframework/zendframework/library/Zend/EventManager/EventMana
ger.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch',
Object(Zend\Mvc\MvcEvent), Object(Closure))
#12
/www/APIO/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(30
9): Zend\EventManager\EventManager->trigger('dispatch',
Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 /www/APIO/public/index.php(21): Zend\Mvc\Application->run()
#14 {main}
What version of the product are you using? On what operating system?
Using version 3.2.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Aug 2013 at 9:51
1. I've uploaded the packaged php files + oauth php file into a directory
2. I've declared the app in developer.linkedin.com
3. I've update the file linkedin_2.1.0.class with my API key/secret
4. I've launched the demo.2.1.0.php
I receive a Bad request token call
Original issue reported on code.google.com by [email protected]
on 22 Nov 2010 at 1:46
What steps will reproduce the problem?
1. Build a page that uses the twitteroauth library, for example.
https://github.com/abraham/twitteroauth
2. Use this (simple-linkedinphp) library as well.
What is the expected output? What do you see instead?
I expect a page with no fatal errors. I see "Cannot redeclare class..." instead.
What version of the product are you using? On what operating system?
Using version 3.2.0.
Please provide any additional information below.
Suggested fix: Change line 75 from:
require_once('OAuth.php');
To:
if (class_exists('OAuthException', false) === false) {
require_once('OAuth.php'); }
Original issue reported on code.google.com by [email protected]
on 14 Jun 2013 at 3:18
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 [email protected]
on 26 Apr 2012 at 4:19
What steps will reproduce the problem?
1. Install version 3.2.0 of the library.
2. Run the demo scripts on a version of PHP < 5.3.x
3. Attempt to join a group using LinkedIn->joinGroup($gid)
What is the expected output? What do you see instead?
In the joinGroup() method, there are two possible codes that can be returned,
200 or 201, depending on if the group is 'open' or not. To support passing
multiple 'correct' response codes to the private checkResponse() method, I
modified checkResponse() to walk the passed array of response codes using an
anonymous function (line 259). Also none as a closure, this pattern is not
supported in PHP prior to 5.3.0, thus breaking joinGroup() support on any PHP
version prior to that.
I will be releasing a new version, 3.2.1 shortly that will address this bug.
Original issue reported on code.google.com by [email protected]
on 19 Nov 2011 at 10:38
Steps to reproduce the problem:
1. Run demo.3.0.2.php
2. Click the grey button "Connect to LinkedIn".
3. LinkedIn shows screen: "Grant [YourProject] access to your LinkedIn Account
[YourName]". Click the blue button: "Ok, I'll allow it".
4. Demo script return the error: Notice: Undefined index: oauth on line 136.
LinkedIn->retrieveTokenAccess(): bad data passed, string type is required for
$token, $secret and $verifier.
Original issue reported on code.google.com by [email protected]
on 29 May 2011 at 7:08
[deleted issue]
Hi there,
I wanted to ask you if you are working on any updates in relation to the
upcoming changes due to the new "member permissions". I refer to these changes
https://developer.linkedin.com/blog/making-it-easier-you-develop-linkedin
http://blog.linkedin.com/2012/08/07/platformupdates/
Thanks in advance for your response.
Regards,
F
Original issue reported on code.google.com by [email protected]
on 14 Sep 2012 at 3:18
This block was in each demo file.
// display constants
$API_CONFIG = array(
'appKey' => '<your application key here>',
'appSecret' => '<your application secret here>',
'callbackUrl' => NULL
);
Replace it with
include_once('api_config.php';)
and then write this block in api_config.php
Original issue reported on code.google.com by [email protected]
on 20 Dec 2013 at 1:50
What steps will reproduce the problem?
1. Create query arguments, e.g. "?type=SHAR&scope=self"
2. Call updates with those args: $linkedin->updates($query);
3. Receive a '401 Unauthorized' response from linkedin
What version of the product are you using? On what operating system?
@version 3.0.1 - 05/01/2011
php 5.3.3, on os x 10.6.6
Please provide any additional information below.
I think this may be a problem with the oauth signature not taking the query
string arguments into account properly when generating the signature.
Original issue reported on code.google.com by [email protected]
on 17 Mar 2011 at 6:08
when i install this demo it gives me error in linkedin not found page
I use my consumer key ,secret. can you help me please.
thnaks
Original issue reported on code.google.com by [email protected]
on 22 Nov 2010 at 12:24
Packages which are not composer installable, are not gonna be used. As simple
as that.
Original issue reported on code.google.com by [email protected]
on 14 Oct 2012 at 10:16
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 18 Jan 2013 at 5:35
What steps will reproduce the problem?
1. Pasted in API key & secret
2. Ran demo.php
What is the expected output? What do you see instead?
Parse error: syntax error, unexpected T_FUNCTION in
/srv/www/htdocs/Oauth/linkedin_3.2.0.class.php on line 259
What version of the product are you using? On what operating system?
3.2.0, SLES 10 64-bit
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 20 Mar 2012 at 5:36
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Mar 2013 at 2:11
I am unble to find "OAuth.php" in 3.2.0.zip download
Please upload correct file.
Original issue reported on code.google.com by [email protected]
on 2 May 2013 at 3:26
What steps will reproduce the problem?
1. Install PECL OAuth extension on server.
2. Download and configure Simple-LinkedIn library, along with required OAuth
class.
3. Run demo script, and OAuth libraries will cause fatal conflict.
At this time, I am trying to plot out the best course of action here. The
whole point of this 'simple' library is that by using a third-party stand-alone
OAuth class, you don't need root access on the server to install the OAuth
extension, etc. Possible solutions include rolling our own OAuth library, or
fully integrating all OAuth-specific functionality into the LinkedIn library,
thus preserving the OAuth class namespace for any pre-existing extensions.
Original issue reported on code.google.com by [email protected]
on 23 Oct 2010 at 1:57
What steps will reproduce the problem?
1.what i must do to get email id from link in
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 18 Aug 2011 at 12:02
What steps will reproduce the problem?
1. working fine in localhost but not working in server my server version is 5.2
2.
3.
What is the expected output? What do you see instead?
its shows nothing empty page
What version of the product are you using? On what operating system?
php 5.2 .... windows xp
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 4 Apr 2012 at 2:41
i have did all the integration for messaging but while try to sent message It
is showing 401 unauthorized error.please help me...thanks in advance
Original issue reported on code.google.com by [email protected]
on 16 Jan 2012 at 11:03
What steps will reproduce the problem?
1. Installed simple-linkedinphp and oauth on LAMP server
2. Obtained app key and secret from Linked In
3. Run demo.php
What is the expected output? What do you see instead?
Expect to be brought to Linked In auth dialog where I can authorize the app and
see the demos work. Instead I get an error that says 'Request token retrieval
failed' and 'signature invalid'. Not getting why this is happening, believe I
have input the correct app key and secret and followed all directions of quick
start guide.
What version of the product are you using? On what operating system?
version 3.2, LAMP.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 4 Jan 2013 at 8:44
What version of the product are you using? On what operating system?
3.2.0 on mac 10.8.2
Please provide any additional information below.
--------------------------
Error retrieving group membership information:
RESPONSE:
Access to groups denied
[success] =>
[error] => HTTP response from LinkedIn end-point was not code 200
--------------------------
Is there a way to add permission?
Original issue reported on code.google.com by [email protected]
on 5 Jan 2013 at 3:26
What steps will reproduce the problem?
What is the expected output? What do you see instead?
picture-url not show the pic i use the image tag <img src="url"> ?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 26 Mar 2012 at 8:32
Below is the code I patched into v3.1.1 to get this feed. Documented at
<https://developer.linkedin.com/reading-company-updates>.
---
public function companyUpdates($options, $by_email = FALSE) {
// check passed data
if(!is_string($options)) {
// bad data passed
throw new LinkedInException('LinkedIn->company(): bad data passed, $options must be of type string.');
}
if(!is_bool($by_email)) {
// bad data passed
throw new LinkedInException('LinkedIn->company(): bad data passed, $by_email must be of type boolean.');
}
// construct and send the request
$query = self::_URL_API . '/v1/companies' . ($by_email ? '' : '/') . trim($options) . '/updates';
$response = $this->fetch('GET', $query);
/**
* Check for successful request (a 200 response from LinkedIn server)
* per the documentation linked in method comments above.
*/
return $this->checkResponse(200, $response);
}
Original issue reported on code.google.com by [email protected]
on 4 Feb 2012 at 5:15
What steps will reproduce the problem?
1. require_once(OAuth.php)
2.
3.
What is the expected output? What do you see instead?
No output. Just got blank page. No output after include OAuth.php file.
What version of the product are you using? On what operating system?
Linux OS
Please provide any additional information below.
It works fine in local as well as Single server. But in Amazon ELB it not
accept OAuth.php file. Any statement after this include statement not working.
Original issue reported on code.google.com by [email protected]
on 14 Jul 2012 at 6:08
What steps will reproduce the problem?
1. On certain servers, trying to send the token requests fail with LinkedIn API
end-point responding with a 400 error.
What is the expected output? What do you see instead?
A 200 response from LinkedIn. Instead, a 400 response is returned.
What version of the product are you using? On what operating system?
All versions, up to and including the latest version.
Is there a workaround?
Yes, by setting the OAuth method to 'GET' from 'POST' in each of
token_access(), token_request() the issue appears to be resolved. However,
using GET vs. POST for token communication goes against the LinkedIn API
documentation.
Please provide any additional information below.
Once connected on these 'problem servers', all other communications act as
expected, including all other POST type communications. My working theory is
as follows:
When posting data normally, we add a UTF-8 header, as this is what LinkedIn
requires. However, when we are posting the OAuth tokens in the token_request()
and token_access() methods, there is no additional XML data being posted, and
as such we are not explicitly setting the OAuth string to a specific encoding,
such as UTF-8. Potentially, on certain machines, they may be communicating
with LinkedIn in a non-supported encoding scheme, thus the 400 bad format error.
I can't verify this, as the library works as expected for me on every install.
Maybe someone can have a look at the source, specifically the send_request()
method to see if there may be an issue with the way I am POSTing data that
would only come up on certain machines.
Original issue reported on code.google.com by [email protected]
on 27 Oct 2010 at 3:58
What steps will reproduce the problem?
1. click on Invite others to join your linkedin network
2. in the section "invite others to join your linkedin network", enter a valid
email address and a message and click on "Send Invitation"
3. An error message is returned. as follows:
Error sending invite:
RESPONSE:
Array
(
[linkedin] =>
401
1328088378868
5YQ8AA6BOL
0
[unauthorized].
OAU:ihxky5OEdxMRyBOTkbphkih2jQJtU-Yz-_oW_UYDsQPuujbzrVhqHBWx7fuvEqS1|445d962a-e0
df-470a-ae1b-3e32335350d1|*01|*01:1328088130:oFMiIuxU2RhQVEoufu3PL3NK0vs=
[info] => Array
(
[url] => https://api.linkedin.com/v1/people/~/mailbox
[content_type] => text/xml;charset=UTF-8
[http_code] => 401
[header_size] => 208
[request_size] => 1260
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.060927
[namelookup_time] => 3.1E-5
[connect_time] => 0.010253
[pretransfer_time] => 0.03594
[size_upload] => 738
[size_download] => 393
[speed_download] => 6450
[speed_upload] => 12112
[download_content_length] => 393
[upload_content_length] => 0
[starttransfer_time] => 0.060881
[redirect_time] => 0
[certinfo] => Array
(
)
)
[oauth] => Array
(
[header] => Authorization: OAuth
realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="0a96ab130
c5deb46d9248509ceaed734",oauth_timestamp="1328088130",oauth_consumer_key="ihxky5
OEdxMRyBOTkbphkih2jQJtU-Yz-_oW_UYDsQPuujbzrVhqHBWx7fuvEqS1",oauth_token="445d962
a-e0df-470a-ae1b-3e32335350d1",oauth_signature_method="HMAC-SHA1",oauth_signatur
e="oFMiIuxU2RhQVEoufu3PL3NK0vs%3D"
[body] =>
First Name
Last Name
Invitation to connect
test....
friend
[string] =>
POST&https%3A%2F%2Fapi.linkedin.com%2Fv1%2Fpeople%2F~%2Fmailbox&oauth_consumer_k
ey%3Dihxky5OEdxMRyBOTkbphkih2jQJtU-Yz-_oW_UYDsQPuujbzrVhqHBWx7fuvEqS1%26oauth_no
nce%3D0a96ab130c5deb46d9248509ceaed734%26oauth_signature_method%3DHMAC-SHA1%26oa
uth_timestamp%3D1328088130%26oauth_token%3D445d962a-e0df-470a-ae1b-3e32335350d1%
26oauth_version%3D1.0
)
[success] =>
[error] => HTTP response from LinkedIn end-point was not code 201
)
LINKEDIN OBJ:
LinkedIn Object
(
[callback:protected] =>
[token:protected] => Array
(
[oauth_token] => 445d962a-e0df-470a-ae1b-3e32335350d1
[oauth_token_secret] => a01ebf5e-57ce-4d81-a8a0-925f3906dc9b
[oauth_expires_in] => 0
[oauth_authorization_expires_in] => 0
)
[application_key:protected] =>
ihxky5OEdxMRyBOTkbphkih2jQJtU-Yz-_oW_UYDsQPuujbzrVhqHBWx7fuvEqS1
[application_secret:protected] =>
_PpZ0H5yO0w_asqa69H4EMFxrBwofg5cGyGP7k2FgArl8aMecG0mTl6ETcJJ43J0
[response_format:protected] => xml
[last_request_headers] => Array
(
[0] => Authorization: OAuth
realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="0a96ab130
c5deb46d9248509ceaed734",oauth_timestamp="1328088130",oauth_consumer_key="ihxky5
OEdxMRyBOTkbphkih2jQJtU-Yz-_oW_UYDsQPuujbzrVhqHBWx7fuvEqS1",oauth_token="445d962
a-e0df-470a-ae1b-3e32335350d1",oauth_signature_method="HMAC-SHA1",oauth_signatur
e="oFMiIuxU2RhQVEoufu3PL3NK0vs%3D"
)
[last_request_url] => https://api.linkedin.com/v1/people/~/mailbox
)
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
I'm running the live on-line demo
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 1 Feb 2012 at 9:32
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 [email protected]
on 1 Aug 2012 at 9:42
line 112 of the demo
$_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . $_SERVER['PHP
adding "':' . $_SERVER['SERVER_PORT']" makes it happy for those of us devs
working with localhost:XXXX
Original issue reported on code.google.com by [email protected]
on 26 May 2011 at 3:17
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.