src/Connectors/Linkedin.php 1 location
|
@@ 135-142 (lines=8) @@
|
132 |
|
]; |
133 |
|
|
134 |
|
// Make th epage IDs available as the array keys and get their picture |
135 |
|
if (!empty($json_result['values'])) { |
136 |
|
foreach ($json_result['values'] as $company) { |
137 |
|
$pages[$company['id']] = Page::create($mapping, $company); |
138 |
|
$pages[$company['id']]->link = 'http://www.linkedin.com/company/'.$company['universalName']; |
139 |
|
$pages[$company['id']]->provider = static::$provider; |
140 |
|
$pages[$company['id']]->raw_response = $result; |
141 |
|
} |
142 |
|
} |
143 |
|
|
144 |
|
return $pages; |
145 |
|
} |
src/Connectors/Facebook.php 1 location
|
@@ 175-182 (lines=8) @@
|
172 |
|
]; |
173 |
|
|
174 |
|
// Make the page IDs available as the array keys |
175 |
|
if (!empty($json_result['data'])) { |
176 |
|
foreach ($json_result['data'] as $page) { |
177 |
|
$pages[$page['id']] = Page::create($mapping, $page); |
178 |
|
$pages[$page['id']]->picture = $page['picture']['data']['url']; |
179 |
|
$pages[$page['id']]->provider = static::$provider; |
180 |
|
$pages[$page['id']]->raw_response = $result; |
181 |
|
} |
182 |
|
} |
183 |
|
|
184 |
|
return $pages; |
185 |
|
} |