我尝试使用Instagram oauth API登录但我无法获取用户电子邮件,因为我可以获取个人资料图片,用户网址,评论等等.
那么有人可以告诉我是否有任何选项来获取用户的电子邮件?
这是给你的片段:
print_r($result->data); exit;
// display all user likes
foreach ($result->data as $media) {
$content = "<li>";
// output media
if ($media->type === 'video') {
// video
$poster = $media->images->low_resolution->url;
$source = $media->videos->standard_resolution->url;
$content .= "<video class=\"media video-js vjs-default-skin\" width=\"250\" height=\"250\" poster=\"{$poster}\"
data-setup='{\"controls\":true, \"preload\": \"auto\"}'>
<source src=\"{$source}\" type=\"video/mp4\" />
</video>";
} else {
// image
$image = $media->images->low_resolution->url;
$content .= "<img class=\"media\" src=\"{$image}\"/>";
}
// create meta section
$avatar = $media->user->profile_picture;
$username = $media->user->username;
$comment = $media->caption->text; …Run Code Online (Sandbox Code Playgroud)