Hi,
I'm building a simple game that i'd like to run on Facebook (without requiring a Drupal login) and as a stand-alone site that would require registration. When running on Facebook, I would like to NewsFeed Publishing, Notifications features of Facebook (and ask users to opt into Extended Permissions so i can send offline Notifications to users).
Had some questions in order to utilize this module -
1) Does this module support running the app as a Facebook app and a stand-alone site? If not, is it easy to customize it to do so?
2) How is the Facebook userid mapped to a Drupal user in this module? What's your suggested strategy for mapping Facebook userids to Drupal userids, so i can use the app for stand-alone access and as a Facebook app? I'm confused by the various Facebook settings i saw
- Not logged in user (uid), which is an "Anonymous Facebook" account
- Create a local accout - Facebook user
- Logged in user
3) Is this integrated with some social networking module, so that the Facebook buddies (retrieved from the Facebook APIs and FBML tags) get stored as Drupal users? I will need to use some buddy mgmt module so the app can run as a stand-alone site?
4) Finally, pl. advise which files of the FBML theme need to be customized for my app?
thanks
kbellare
Comments
Comment #1
Dave Cohen commentedThat's a lot of questions for one issue. First I recommend if building a new app you use drupal 6, not drupal 5.
1) Does this module support running the app as a Facebook app and a stand-alone site? If not, is it easy to customize it to do so?
Yes, see http://www.drupalforfacebook.org and http://apps.facebook.com/drupalforfacebook. Both are served by the same Drupal.
2) How is the Facebook userid mapped to a Drupal user in this module?
Using Drupal's authmap table.
What's your suggested strategy for mapping Facebook userids to Drupal userids, so i can use the app for stand-alone access and as a Facebook app?
If the user's facebook id is known, an entry is created in the authmap table. Otherwise it is not.
I'm confused by the various Facebook settings i saw
- Not logged in user (uid), which is an "Anonymous Facebook" account
- Create a local accout - Facebook user
- Logged in user
I'ts complicated because your pages may be served to a user not logged into facebook, a user logged into facebook who has not authorized your app, and a user who is logged into facebook and has authorized your app. I suggest reading up on facebook's developer wiki before building an app.
3) Is this integrated with some social networking module, so that the Facebook buddies (retrieved from the Facebook APIs and FBML tags) get stored as Drupal users? I will need to use some buddy mgmt module so the app can run as a stand-alone site?
If two users of your app are friends, the modules can determine this. For example the fb_fiews module includes an argument to show only posts by a friend of a given user.
4) Finally, pl. advise which files of the FBML theme need to be customized for my app?
Creating an fbml theme is no different from creating an HTML theme in drupal. Drupal for facebook comes with one example fbml theme. If you don't know how to customize it, read documentation about drupal theming.