ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Using Magpie to show Facebook feed, url issues

September 14, 2010 5:42pm

Subscribe [2]
  • #1 / Sep 14, 2010 5:42pm

    Argyll

    67 posts

    Nuts. I’m using Magpie to show a Facebook feed:

    {exp:magpie url="http://www.facebook.com/feeds/page.php?format=atom10&id=273491097785" limit="5" refresh="500"}
    <ul>
    {items}
    <li>{title}  <a href="http://{link}">See on Facebook ></a></li>
    {/items}
    </ul>
    {/exp:magpie}

    Unfortunately, some of the links are coming in as “/WaterwayCove/posts/496878202785” which of course throws off my link.

    Others are coming in as complete URLs like “http://www.facebook.com/photo.php?pid=7200956&id=273491097785&comments;” or “http://www.facebook.com/album.php?aid=203293&id=273491097785&comments;”

    Is there any way to use EE to get around this wackiness?

  • #2 / Sep 15, 2010 12:48pm

    hd 

    156 posts

    You might use a little php…

    (untested):

    {exp:magpie url="http://www.facebook.com/feeds/page.php?format=atom10&id=273491097785" limit="5" refresh="500"}
    <ul>
    {items}
    <li>{title}  <a href="http://&lt?php$link">See on Facebook ></a></li>
    {/items}
    </ul>
    {/exp:magpie}

    for some reason it isn’t letting me post in this code. replace insert_here with “{link}”;

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases