Display Facebook Page RSS Feed


Use this code to pull an RSS feed from Facebook for your institution's Page, and display the most recent item in your HTML code.

This feed only includes things posted by your institution, not comments or posts made by others on your Page.

This code also converts some internal Facebook URLs in the post into addresses that can be used from offsite (i.e. "/profile.php?id=49426403878" --> "").


#set($rssTotal = 1)

#set($Q = '"')
#foreach($content in $list)
        ## Make Facebook's odd relative URLs into URLs that work from another site
        #set($content.description = $content.description.replaceAll("href=.\/","href=${Q}"))
        #set($ = $"^\/",""))
        <h3><a href="$!">$!content.title</a></h3>