When adding comment, it's not posting to FB Wall or Feed

dbigras - April 18, 2009 - 17:38
Project:Facebook Connect
Version:6.x-1.0-beta7
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I've configured the module to the best of my knowledge. It's working fine. I can login with FB users, I can link current drupal users to FB users. I see the FB avatar. I see the FB Profile information. When I register on my site, it adds a notification in the user's wall and news feed.

But when I add a comment to an article, it doesn't add a notification in the user's wall or news feed.

I did not change the Bundle IDs and everything else is working fine.

What did I miss?

#1

yossilac - April 21, 2009 - 09:41

Same here (using 5.x version) - been having some problems recently - the module does not publish anything on FB.
I noticed in the browser's status bar that it's contacting errors.facebook.com, but I don't know what the errors are...

Everything worked fine a couple of weeks ago.

#2

dbigras - May 1, 2009 - 05:41
Category:support request» bug report

Anyone care to help?

#3

yossilac - May 9, 2009 - 07:19

As there are no responses, I would just love to know - does anyone have a working feed-publishing site?
If so, which version of fbconnect are you using?

I would really appreciate any response here,
Thanks.

#4

shiver - May 10, 2009 - 16:29

I'm having the same problem... would really like the feed to work!! Initially when I first set it up it was working fine, now it does not. HMM, anyone have a working version ?

#5

swellbow - May 11, 2009 - 22:57

Isolated this down to line 334 of fbconnect.module:

function fbconnect_comment_feed_submit($form, &$form_state) {
  if ($form_state['values']['fbconnect_feed'] == 1) {
   $node = node_load(array('nid' => $form_state['values']['nid']));
  
   $_SESSION['fbconnect_feed'] = array(
      'type' => 'comment',
      'comment' => check_plain($form_state['values']['comment']),
      'title' => check_plain($node->title),
      'nodeurl' => drupal_to_js(url('node/'.$node->nid, array('absolute' => TRUE))),
   );
  }
}

This ends up spitting out js on line 246. With firebug, this shows an error because the article url is null:

$(document).ready(function() {FB_RequireFeatures(["XFBML"], function() {
                  FB.Facebook.init("crazysessioncodehere", "/sites/all/modules/fbconnect/xd_receiver.html");
                });facebook_publish_feed_story(47874003217,{
                      "sitename":"test site",
                      "siteurl" : "http://www.testsite.com",
                      "title" : "",
                      "article_url" : ,
                      "comment" : "Nice."
                     });});

So I put in a couple watchdog statements to see what was going on (yes, I know this is not the right way to run watchdog statements):

function fbconnect_comment_feed_submit($form, &$form_state) {
  if ($form_state['values']['fbconnect_feed'] == 1) {
    $node = node_load(array('nid' => $form_state['values']['nid']));
    watchdog("fbconnect", "nid " . $form_state['values']['nid'], null, WATCHDOG_DEBUG);
    watchdog("fbconnect", "nodeurlplain " . url('node/'.$node->nid, array('absolute' => TRUE)), null, WATCHDOG_DEBUG);
    $_SESSION['fbconnect_feed'] = array(
      'type' => 'comment',
      'comment' => check_plain($form_state['values']['comment']),
      'title' => check_plain($node->title),
      'nodeurl' => drupal_to_js(url('node/'.$node->nid, array('absolute' => TRUE))),
    );
  }
}

And all of a sudden the code worked. And the values showed up in watchdog. Now I am more mystified. Is something getting loaded because of the watchdog statements or because it takes more time to execute?

Baffled by that one. ;) Anyway, at least now there's a direction.

#6

tsi - May 26, 2009 - 09:34

@swellbow : I know its not a solution but I tried it anyway, didn't work for me.
Any progress on this one ?

#7

Gekiboy - July 15, 2009 - 22:29

I'm experiencing the same problem with Drupal 6. I've looked into it, and although the js is set with drupal_set_js(), it doesn't output in the $closure variable as it's supposed to.

#8

FrontBurner - September 3, 2009 - 03:34

With an exception of this:
"Users can publish a customizable message on their Facebook feed announcing that they have created an account on the Drupal website"
I don't see anywhere in this modules documentation where it says anything about being able to publish content to a users facebook feed. Is the documentation for this module just out of date? I was looking to find another module that would allow me to post comments and activity to a users facebook wall but if this module has that functionality I will continue to use it. If someone could clarify the this that would be great! Thanks in advance.

#9

vgodard - September 23, 2009 - 16:10

same problem here...

#10

andorraclaim - September 28, 2009 - 06:25

subscribing

#11

shunshifu - October 1, 2009 - 03:26

I have one site that this is working on and another it's not. Can't find a difference yet but I'll keep looking

#12

radj - October 22, 2009 - 15:42

Yeah, I'd also like to have it clarified (like #8) if it can post nodes to a user's wall.

#13

totaldrupal - November 5, 2009 - 00:30

same here, would be great if it posted content to wall.

#14

WildBill - November 13, 2009 - 00:19

Like #8 and #12, I would like to know if posting content to the user's Wall is even part of the intended functionality.

#15

WildBill - November 13, 2009 - 00:24

Okay, I somehow didn't see this before. There's a checkbox on the comment form to post it to Facebook. After submitting the comment, you're presented with a standard Facebook "Do you want to publish this to your Wall" window. Clicking "Publish" appears to work, at least in beta8.

 
 

Drupal is a registered trademark of Dries Buytaert.