Primary links

wrong domain when posting to profile

Paul

Hello, firstly I'd like to congratulate you on such a great module and wish you all the best with future development.

I have a problem though: when using drupalforfacebook to add a view to my profile, the domain part of all links point to my domain rather than apps.facebook.com (the rest of the url is ok).

I think it's the same problem as documented here: http://drupal.org/node/193386

I noticed that the drupalforfacebook app itself doesn't have this problem when it adds to the box on my profile. Is there a way round this that I haven't found?

Here's what

Here's what drupalforfacebook does to produce it's profile box...

It defines a view, visible here: http://apps.facebook.com/drupalforfacebook/fbml_tracker. The view is of type "Facebook Discussion" provided by fb_views module.

When anyone adds the app, they get the default profile fbml, which includes an fb:ref tag.

I define an action to update that ref fbml, triggered by cron. The action is configred to do this:


<?php
$view = views_get_view('fbml_tracker');
$output = views_build_view('block', $view, array(), FALSE, 5);
print $output;
?>