Closed (fixed)
Project:
Drupal for Facebook
Version:
6.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2009 at 18:57 UTC
Updated:
1 Jul 2010 at 14:53 UTC
Drupal announced/released a new API for the feed yesterday
http://developers.facebook.com/news.php?blog=1&story=225
It allows apps to get hold of the whole feed, pictures, videos and all it looks like. Dave, did the Knight foundation grant open any of your time to tackle this?
Comments
Comment #1
Dave Cohen commentedAgreed this needs to be done. Basically everything in fb_feed.module needs to change to this API.
The problem with the facebook api is that some part of it is changing in a major way all the time. It's a struggle to keep up.
The knight foundation grant has a budget that does not take all this into account. Because I'm not psychic. I'm still looking for chip-ins and patches to help out.
thanks for the link. I was just reading about this stuff earlier today.
Comment #2
Dave Cohen commentedRather than change anything in fb_feed.module, I'll make a new module called fb_stream.module and deprecate fb_feed. Not sure how soon I'll get around to it, however.
Comment #3
pribeh commentedWhere can I make a chip-in Dave? I really want a fb_stream.module for D5 but can't seem to figure out how to help much code-wise.
Comment #4
Dave Cohen commentedTo contribute towards a specific issue like this, make a pledge on drupalforfacebook.org, or read more about sponsorship options.
But I'm not sure a stream module for D5 is in order. I'm targeting D6 for all new features, it's hard to maintain both branches. The stream stuff is very new and still requires extended permissions which your app users must opt into. Is there something specific you need? Because in D5 you can already write messages to the feed.
Comment #5
pribeh commentedThanks Dave. I'll hold off on requesting any new features for the D5 version.
Comment #6
pflame commentedHi Dave,
I would like to implement this fb_stream.module. Let me know if you have already started implementing this. If you started already, tell me how I can help you finish this module.
Comment #7
Dave Cohen commentedI have not started to implement. Feel free to take a stab at it. I doubt the fb_feed module will go away, as it defines a content type for templates. So it's unclear to me whether the stream code belongs in there or not. But if you create an fb_stream module with some good code, we'll figure out the right way to add it.
Comment #8
pflame commentedHi Dave,
I will go through the stream api and will figure out what needs to be done. Based on that I will write module and will keep you update on the progress.
Comment #9
deltab commentedthis works: http://drupal.org/project/facebook_stream, requires Fbconnect, though
Comment #10
Dave Cohen commentedI've just checked in fb_stream.module. It's a start. Please help me improve it.
It does not do everything that fb_feed.module does, and it never will. For one, it does not need to support templates. For two, it may never support actions. Does anyone really use those anyway? And the new api does not do template substitution, so I'm not sure it needs the same treatment.
The Open Stream API does a lot of things. Right now this module only does the tip of the iceberg, which is to invoke the publish dialog. I welcome patches that expand it's functionality. It would be cool to (a) not have to write code to use this, and (b) do a lot more, like adding comments on facebook walls when comments are added to Drupal; or anything have to do with reading streams.
Right now, drupalforfacebook.org uses this module to publish when you post to the forum or submit a comment. It does this via a custom module, implemented this way:
Comment #11
almaudoh commentedHi Dave,
I'm also interested in a fb_stream.module for my current project. I'll see how I can contribute code-wise. However, I can't commit to a timeline. I'd also like to borrow your custom implementation code.
Comment #12
pyrello commentedHere is a link to the instructions posted in another thread for setting this up: http://drupal.org/node/235457#comment-2321222
Comment #13
georgedamonkey commentedI was able to get this working on my site. Thank you!!
Is there any way to make this post to the facebook application's wall, rather than my own? Or, in addition to?
Comment #14
georgedamonkey commentedFigured it out. Modified the function a bit:
Just replace target_id with your app id.
Comment #15
Dave Cohen commentedCool nice tip!
I'm resolving this to keep the issue queue clean. As issues arise with fb_stream.module, as they undoubtably will, submit new threads.
Comment #17
JYW Enterprise commentedDave,
I'm not sure if this where I should post this question, but for lack of that knowledge I will give it a go here.
I am curious if the core of your module could fulfill this ascenario:
Sites like Twitter, Facebook and the like, have APIs which allow you to push and pull content from their respective sites to be shown on blogs and other sites. I am currently developing a community site where i would like people to be able to push and pull content from that community to and from other sites.
I'm not sure if you module covers all those capabilities (as I honestly have not looked under the hood as of yet), but I am wondering if you believe you have the foundation to create an API framework to make remote calls for read and write possible.
Thanks.
Bill
Comment #18
bryanb229 commentedThanks George, that was a huge help.