Most of the code for publishing events to the user's facebook stream was there in fbconnect.module through revision 1.32.2.1 but was removed in the commit for 1.32.2.2 (the version that is in the 6.x-2.x-alpha1 release).

Getting it actually post comments, nodes, and new site memberships to the Facebook stream only involved adding one function call to the FB Javascript library. Not sure if there's an interest in bringing this back or if the plan is to handle publishing to the stream in an entirely different way.

Anyway, again, this patch was taken against 1.32.2.1 module, where $_SESSION['fbconnect_feed'] was still being used to store events that needed to be posted to Facebook via Javascript on the next page load, but the actual Javascript call to the FB API was missing.

CommentFileSizeAuthor
fbconnect.module.diff2.62 KBankur

Comments

xpla’s picture

Hi,

i have the latest version you've linked though i set "publish to facebook" i can't see a new post on my Facebook Profile. Don't know what to do?

EDIT: It must have something to do with my theme. If i set the standard "Garland" Theme i get the popup where i get asked to publsih this to my profile ... Anyone an idea what to add? Thank you!

ankur’s picture

To xpla in #2, if the pop-up is showing in Garland, but not your custom theme, I'd firebug it and look for Javascript errors. Another thing to do would be to make sure that the facebook_stream_publish.js file gets loaded and that the javascript added by the fbconnect_stream_publish_footer() function in fbconnect_stream_publish.module shows up in the footer of the page on which the pop-up should be showing.

xpla’s picture

@ankur

Now it works ...

secunoid’s picture

Version: 6.x-2.x-dev » 6.x-2.0-alpha2

Hi,

How do I add the code you povided to my fb module?

Thank you,

S

ankur’s picture

Status: Needs review » Closed (fixed)

@secunoid in #5, you won't need to add any code to the module. The latest development version works. You'll need to enable the fbconnect_stream_publish module, which depends on the main fbconnect module and is included in the tarball.

Closing this because this is not an issue any more.