Announcement Announcement Module
Collapse
No announcement yet.
Please help! Displaying a Facebook newsfeed/timeline on a website Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Please help! Displaying a Facebook newsfeed/timeline on a website

    A developer directed me here, telling me that I could use SpringSource to take a public Facebook newsfeed and display it on a website. Is this true? Is it possible?

    The Facebook newsfeed (aka timeline) is for a website, and they would like updates to be displayed there. I understand that Facebook themselves don't seem overly keen on people doing this, though. Can SpringSource really help?

  • #2
    Well, yes, Spring Social can help you do that. Once you get a Facebook API binding created, you can use any of the operations in the FeedOperations interface to get what you want. For example, if you wanted to get all of the posts for Coca-Cola's Facebook page you could do this:

    Code:
    @Autowired
    private Facebook facebook;
    
    ...
    
    public void getFeedForCocaCola() {
      List<Post> posts = facebook.feedOperations().getFeed("coca-cola");
      // do something with the posts
    }
    That said, it sounds like you're new to Spring Social (and maybe even new to Facebook's Graph API), so you should really read the Spring Social documentation at http://static.springsource.org/sprin...eference/html/ and the Spring Social Facebook documentation at http://static.springsource.org/sprin...eference/html/. Then have a look at the Spring Social Showcase, which (among other things) displays a user's feed: https://github.com/SpringSource/spri...ocial-showcase. I'll be happy to help out, but at this stage it sounds like you're starting from zero and need to do a bit of homework up front. Once you have more specific questions about Spring Social, post 'em here and I (or others on this forum) will be happy to help out.

    Also, if all you want to do is display a website's own feed on the same website, you might consider using Facebook's Activity Feed social plugin (https://developers.facebook.com/docs...gins/activity/). Spring Social is great for many in-depth integration with Facebook use cases, but for simple jobs some of Facebook's own JavaScript libraries and/or social plugins might be simpler.

    Comment


    • #3
      Wow thanks! I will definitely try this one! I just love Spring Source.

      Comment

      Working...
      X