You are hereOther / Social Media Help
Social Media Help
Posting to your Facebook wall as user or post to Facebook fan page as admin
Let's first install Drupal for Facebook module as it's stated in readme file.
1.First download and install FB PHP-SDK, download from http://github.com/facebook/php-sdk. Extract the files, and place them in sites/all/libraries/facebook-php-sdk on your site
2.Your theme page.tpl.php and others need the following attribute at the end of the tag: xmlns:fb="http://www.facebook.com/2008/fbml"
3. Add this 2 lines to end of your settings.php include "sites/all/modules/fb/fb_url_rewrite.inc"; include "sites/all/modules/fb/fb_settings.inc";
Twitter module - changing what is published to twitter when users submit nodes
We just changed what is published to Facebook in last post, lets do the same for twitter. I am gonna be layze and just change the original module, but you can build your custom and override it. So twitter module is the module we use and we open twitter_post.module file and edit it on twitter_nodeapi part. It is simple edit, simple additon to code. In replacement array we just add something to sent title, like below
Drupal for Facebook - changing what is published to facebook Walls when users submit nodes
There is one and only one module you should use when using facebook integration with drupal its Drupal for Facebook(DFF). It has many features but its also a bit harder to setup and use. I won't get into details of this, but you MUST read readme files and all documentation to make it work, you will need to spend some hours learning it :-( but then again you will know it for future and your knowledge will be appliable to many drupal sites. Lets get to the point.