the Forum

I’d like to be able to add Facebook, Twitter, Pinterest, and Instagram feeds to my website

Posted on July 25, 2014 by James
Total Posts: 1  |  Join date: 07-25-14

I have a website and I want to show the feeds on my site, do you recommend any plugins or scripting i can use to show them? Thank you.

Tags: facebook, instagram, pinterest, scrape, twitter

2 answers, add yours below

Posted on on July 25, 2014 at 9:21am
by Michael Rosario

Hi James,

I would use Google's Feeds API https://developers.google.com/feed/v1/jsondevguide

<script src="http://www.google.com/jsapi?key=AIzaSyA5m1Nc8ws2BbmPRwKu5gFradvD_hgq6G0" type="text/javascript"></script>
<script type="text/javascript">
/*
*  How to load a feed via the Feeds API.
*/

google.load("feeds""1");

// Our callback function, for when a feed is loaded.
function feedLoaded(result{
  
if (!result.error{
    
// Grab the container we will put the results into
    
var container document.getElementById("content");
    
container[removed] '';

    
// Loop through the feeds, putting the titles onto the page.
    // Check out the result object for a list of properties returned in each entry.
    // http://code.google.com/apis/ajaxfeeds/documentation/reference.html#JSON
    
for (var 0result.feed.entries.lengthi++) {
      
var entry result.feed.entries[i];
      var 
div document.createElement("div");
      
div.appendChild(document.createTextNode(entry.title));
      
container.appendChild(div);
    
}
  }
}

function OnLoad() {
  
// Create a feed instance that will grab Digg's feed.
  
var feed = new google.feeds.Feed("http://www.digg.com/rss/index.xml");

  
// Calling load sends the request off.  It requires a callback function.
  
feed.load(feedLoaded);
}

google
.setOnLoadCallback(OnLoad);
</script> 


For reference, here are the links to the social network RSS:

Facebook:
https://www.facebook.com/feeds/page.php?id=[ID_OF_ACCOUNT]&format=rss20

Twitter:
https://dev.twitter.com/docs/embedded-timelines#customization
Unfortunately, Twitter is still pretty locked up, unless you want to do something more creative raspberry

Instagram:
http://instagram.com/tags/[USERNAME]/feed/recent.rss#

Pinterest:
http://www.pinterest.com/[USERNAME]/feed.rss






 

Posted on on August 23, 2014 at 1:22pm
by Вхуиз

Thanks! Very interesting site.

 
add your answers here
comments powered by Disqus