0

目前在我看来,我可以拉出每个帖子(我目前也在搞乱获取日期,如果有人知道如何快速格式化,请告诉:D)

我的观点目前看起来像这样:

<?php




                            // Show tweet text
                           foreach ($this->twitterfeed as $post) {

                             echo '<p><time> '.$post->created_at . '</time> ';
                             echo $post->text . ' ';
                                echo '</p><br/>';
                            }
                            ?>

显然 $post->text 正在拉取帖子的文本部分,但是如何拉取用户的个人资料图片?

4

1 回答 1

0

$post->profile_image_url应该给你头像 URL,你应该能够created_at通过首先运行它来格式化它strtotime(),给你一个 UNIX 时间戳。

于 2013-09-12T13:53:21.763 回答