Advertising sustains the DA. Ads are hidden for members. Join today

Facebook Application Recipes

Building Facebook Applications can be a complicated process. We couldn't possibly write a one-size-fits-all description of how to configure all apps. So, in this section we describe a few commonly-required features and how to implement them with Drupal for Facebook.

Begin with the general installation and setup. Then, follow the instructions here to implement additional features.

Note: In general, if you plan on creating any kind of Facebook application (which we assume you are!), you must enable the fb_app.module (listed as Drupal for Facebook Applications in /sites/all/modules) and fb_user.module (Drupal for Facebook User Management).

To support applications beyond simple social plugins, you must enable clean URLs by going to admin/settings/clean-urls on your site. If you don't, some links that Drupal creates will not work properly on FB Application (canvas) pages.

To support Drupal websites integrating FB features (FB Connect), enable the fb_connect.module.

To support FB Application (Canvas) pages, enable the fb_canvas.module.

Adding Open Graph Meta Tags

These instructions apply to nodewords 6.x-1.11 and possibly later; step 3 may no longer be needed in later versions.

Apps on Facebook.com (canvas pages)

Applications on Facebook.com, also known as canvas pages allow you to add new features to a user's Facebook account. The features and

Facebook Connect

Facebook Connect, otherwise known as Facebook for Websites, enables you to integrate the social and personal features of Facebook into your

Invitations / Requests

NOTE (7/2013): this page is probably deprecated, as fb_friend.module is deprecated.

Publishing

Stream Publish Dialog

Redirect after connect

Link that sends user to specific page

Social Plugins

Social Plugins are appropriate when you have a website and want to add some social features, but do not want to host a full-fledged

Tabs on Facebook Pages

This page still talks about FBML tabs. The latest fb_tab.module supports only iframe tabs. The techniques that follow still apply.

User Accounts

User Accounts rely on Identity which is how Drupal for Facebook handles users. Identity uses the fb_user.module (User Management) to link

Guide maintainers

stacywray's picture