Facebook Status on Author page without a plugin?
-
Im trying to setup individual author pages using the variable $curauth to display all the necessary author info for my multi author blog. Im wondering if its possible to have a facebook status fed into my author pages like I did with Twitter
<?php $twitteruser = $curauth->username; $username = $twitteruser; // Your twitter username.$prefix = ""; // Prefix – some text you want displayed before your latest tweet. $suffix = ""; // Suffix – some text you want display after your latest tweet. $feed = "https://search.twitter.com/search.atom?q=from:" . $username . "&rpp=1"; function parse_feed($feed) { $stepOne = explode("<content type=\"html\">", $feed); $stepTwo = explode("</content>", $stepOne[1]); $tweet = $stepTwo[0]; $tweet = str_replace("<", "<", $tweet); $tweet = str_replace(">", ">", $tweet); return $tweet; } $twitterFeed = file_get_contents($feed);echo stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes($suffix); ?>
Is this even possible with Facebooks privacy?
Thanks
- The topic ‘Facebook Status on Author page without a plugin?’ is closed to new replies.