在 html 页面中使用用户 ID 显示脸书图像


Show facebook image using user id in html page

这是我的img标签来显示img

<img src="https://graph.facebook.com/"+<?php echo $user_id; ?>+"/picture?type = small">   ..[x]

user_id 是我在代码顶部收到的 php 变量:

<?php
    $user_id = $_POST['userid'];
?>

像 [X] 中的错误是什么?它不显示图像

好的,

知道了。

<img src="https://graph.facebook.com/<?php echo $user_id; ?>/picture?type = small">

工程