I would like to display my client's twitter and facebook posts in a most-recent format in a custom view or block that will be implemented on their site. I was thinking of using the Feeds module, but was told by someone on twitter that cURL was the way to go. Giving these elements custom styling and keeping them listed by timestamp (not type of aggregate) is very important to me, and I was wondering about how to get this done.


I have clients who require exactly the same feature, and the best method I have found so far is using Feeds and Feeds XPath Parser.

I create two Feeds importers that import from the RSS feeds of the client's Twitter and Facebook profiles. I set Feeds to create a node for each update (content type 'Social update') and use Feeds XPath Parser to populate the correct fields (title, body, timestamp, etc). I also set Feeds to automatically purge imported nodes after two weeks, and set it to schedule import on cron every hour.

Now I have each new post in a node, and I can display them however I like using Views.

This works ok, BUT I'm not convinced it's an optimal solution. I've looked at modules that interface with the Twitter and Facebook APIs for a better solution (e.g. Twitter Pull, Facebook Pull, Feeds Facebook Parser, Twitter) but they don't seem to provide a method for pulling Tweets and Facebook posts together in a single view or block. I'd love to get some more ideas on this.

| improve this answer | |
  • I got the twitter feed working using Feed Aggregrator and Views. However, I can't seem to wrap my head around the facebook Social Graph API. From what I have learned, Facebook no longer supports RSS feeds since they changed to the timeline and now require setting up using their API. I'm sure I could figure it out if I could only get the FB feed... – Jonathan Kempf Oct 6 '12 at 19:34
  • Interesting to know. My client's Facebook RSS feeds are still working, but Facebook don't promote this service and could terminate it any time. So yep - all the more reason to go the API route if possible. – pushka Oct 7 '12 at 19:44
  • This might help drupal.org/project/feeds_facebook – pushka Oct 8 '12 at 10:08
  • I took a look at the feeds_facebook module and it seems like a good option. Only problem I am having is how to get the access_token for the FB API. The documentation is great, but not very organized into use cases. Any idea how to get this? – Jonathan Kempf Oct 15 '12 at 0:55
  • Interesting development. I got the access_token for the status and feed of my clients Facebook wall and used the feeds_facebook module with Feed aggregator to try and figure out a solution. What I have now is this URL in the feed aggregator: [graph.facebook.com/facebook_id/… This feed works in a new window,but generates this error in Drupal: "The feed from Facebook seems to be broken, because of error "Not well-formed (invalid token)" on line 1." – Jonathan Kempf Nov 11 '12 at 11:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.