KuldeepsinhRathod / simple-linkedinphp

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

picture-url #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 leomah2010@gmail.com on 26 Mar 2012 at 8:32

GoogleCodeExporter commented 9 years ago
   <?php
            $response = $OBJ_linkedin->profile('~:(id,first-name,last-name,picture-url)');
            if($response['success'] === TRUE) {
             $res = new SimpleXMLElement($response['linkedin']);
            //$res=str_split($response['linkedin']);
            echo print_r($res);

            echo $res->{"id"}."<br>";
            echo $res->{"first-name"}."<br>";
            echo $res->{"last-name"}."<br>";
            $image=$res->{"picture-url"};
            echo $image;
            ?>
            <img src="<?php echo $image; ?>" >
            <?php

Original comment by leomah2010@gmail.com on 26 Mar 2012 at 3:29

GoogleCodeExporter commented 9 years ago
this is coding where i not get image

Original comment by leomah2010@gmail.com on 26 Mar 2012 at 3:29