Note that there are some explanatory texts on larger screens.

plurals
  1. POdisplay linkedin details in my text fields using php
    text
    copied!<p>i have managed to connect with Linkedin APi, so i can get the users details using below code.</p> <pre><code> $response = $OBJ_linkedin-&gt;profile('~:(id,first-name,last-name,picture-url,email-address,phone-numbers)'); if($response['success'] === TRUE) { $response['linkedin'] = new SimpleXMLElement($response['linkedin']); </code></pre> <p>after that i need to display the retrieved details into text fields like this.</p> <pre><code>&lt;table border="1"&gt; &lt;tr&gt; &lt;td&gt;Name&lt;/td&gt; &lt;td&gt;&lt;?php echo $response['linkedin']-&gt;id; ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;first Name&lt;/td&gt; &lt;td&gt;&lt;?php echo $response['linkedin']-&gt;first-name; ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Email&lt;/td&gt; &lt;td&gt;&lt;?php echo $response['linkedin']-&gt;email-address; ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>Id is displaying correctly, but other details are not showing. can anyone help on this. thanks in advance</p> <p>This is the xml output </p> <pre><code>this is : Array ( [linkedin] =&gt; KmRPC6CWFV Dam Path0 http://m.c.lnkd.licdn.com/mpr/mprx/0_TLYPQpjA4IBXz8ZqfCOhQxS04wrNB8dq_TE2Qxj8FDXkegggdXONDimxH0Wm9QKwqbH486ySW47__SJO ****@yahoo.com mobile +947123452 [info] =&gt; Array ( [url] =&gt; https://api.linkedin.com/v1/people/~:(id,first-name,last-name,picture-url,email-address,phone-numbers) [content_type] =&gt; text/xml;charset=UTF-8 [http_code] =&gt; 200 [header_size] =&gt; 205 [request_size] =&gt; 500 [filetime] =&gt; -1 [ssl_verify_result] =&gt; 20 [redirect_count] =&gt; 0 [total_time] =&gt; 1.482 [namelookup_time] =&gt; 0 [connect_time] =&gt; 0.374 [pretransfer_time] =&gt; 1.076 [size_upload] =&gt; 0 [size_download] =&gt; 538 [speed_download] =&gt; 363 [speed_upload] =&gt; 0 [download_content_length] =&gt; -1 [upload_content_length] =&gt; -1 [starttransfer_time] =&gt; 1.466 [redirect_time] =&gt; 0 ) [oauth] =&gt; Array ( [header] =&gt; Authorization: OAuth realm="http%3A%2F%2Fapi.linkedin.com",oauth_version="1.0",oauth_nonce="a484c4f1360fce43994eac522452b3b1",oauth_timestamp="1375865879",oauth_consumer_key="dxmlx1mg2xoz",oauth_token="70b05d77-fa98-49eb-bada-4be9d8533f29",oauth_signature_method="HMAC-SHA1",oauth_signature="05UWwjC1jC7lZT%2BBa8nWk8Isiz8%3D" [string] =&gt; GET&amp;https%3A%2F%2Fapi.linkedin.com%2Fv1%2Fpeople%2F~%3A%28id%2Cfirst-name%2Clast-name%2Cpicture-url%2Cemail-address%2Cphone-numbers%29&amp;oauth_consumer_key%3Ddxmlx1mg2xoz%26oauth_nonce%3Da484c4f1360fce43994eac522452b3b1%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1375865879%26oauth_token%3D70b05d77-fa98-49eb-bada-4be9d8533f29%26oauth_version%3D1.0 ) [success] =&gt; 1 ) </code></pre> <p>hope this is the one.thanks for your support</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload