I'm having an issue posting URL's to Twitter when using DFF and Twitter module. It points toward the facebook canvas theme but not the app. so the URl is formed to a canvas themed page that's outside of facebook. Also the Share on facebook functionality when creating a node is posting the link back to the main site. I would like all URL's shared be it facebook or Twitter to be the link to the facebook app.

An example URL would be http://tinyurl.com/4m4j4fx which points to http://go-protest.appventuresllc.com/fb_cb/22b18aa729f005e6912118f0194d2... and it should be http://apps.facebook.com/go-protest/protest/url-testing so any help getting this as well as the links shared on facebook to be correct would be appreciated.

Comments

Dave Cohen’s picture

If you have access to the code generating the URL, make sure to call url this way...

url('some/path', array('absolute' => TRUE, 'fb_canvas' => TRUE));
joshuabud’s picture

Can you please elaborate more with regards to where I should place this code? I have full access to the site source code however I'm not a coder so the more description here the better. Also on a side note can you please help me understand how I can post to both the user stream(this works fine) and the app wall(not sure how to achieve this) when new content is created?

Dave Cohen’s picture

I think it belongs in the twitter module, beyond that I can't say.

Posting to a "page" which is what the application's wall is, is possible. You have to add a target id to the code for posting. Theres a comment somewhere in http://drupal.org/node/685320 about it.

Facebook has changed (improved?) some of the code for posting, but drupal for facebook's fb_stream.module does not yet take advantage of this.