Hey,

I posted this question a week ago, and never got an answer from anybody. Today I logged in again and for some reason it got deleted, so posting it again...

I have a drupal site where users can create a profile which is a node (content profile). I need to create an application that these users can add to their facebook PAGE as a tab. After linking the facebook user to the drupal account, I want the user's profile from drupal to display on the fb tab. This profile should be visible to ANYONE who visits the facebook page.

I know how to create an app that a user can add as a tab on fb.
I'm not entirely sure if and how I can create that link between the fb page and the drupal profile node. I hope I made my question clear...
Would love to get some advise from anyone who tried something like that with this module...
Thank you!

Comments

Dave Cohen’s picture

Hopefully the fb_tab.module will make this trivial some day. Today is not that day.

Tabs have to be handled by a single URL, because of the way facebook works. For a start, I recommend using 'fb/devel/tab' as the tab's path. That menu callback dumps out some data, showing what info facebook has passed to the tab request.

fb_views.module provides a filter, limiting a view to content created by the tab owner. So you could build a simple view that shows a node, and filters to the profile owner.

Oh, you have to either make an FBML theme, or make a callback like fb_devel_tab() which returns FBML.

I hope that gets you started. I plan to fill this code out, and would love help. So submit patches if you got em.

gorgo’s picture

Hi Dave,
Thanks for the quick reply!
I've done everything you said but the FBML theme part...
I read on one of your tutorials that there's an FBML theme in the package, but I can't find it. I then searched the issue queue and found a comment about facebook not using FBML themes anymore, only iFrame themes.
I guess I do need it cause unless I use 'fb/devel/tab' as a path for the tab, I don't get any output. Is there a link where I can download a working FBML theme?

gorgo’s picture

Hi Dave,
I looked at the output when I used 'fb/devel/tab' as a path, and when using it on a page, I don't get the user Id for the page owner. I get the page ID.
I was hoping you might be able to give me some advise on what would be the best way to link the two on my drupal site?
One option I guess would be to have the user fill out his fb page ID in his profile and then link the 2, but obviously that's not very user friendly. In addition with fb's custom urls, a lot of people would have trouble finding their page id...
Is there a way to set it up so that when a user link his fb account on the drupal site, I could automatically get his page ids (the ones where he is the admin/owner anyway)?
Thank you!

EgonO’s picture

Application-Profile-Tabs will be abandoned from beginning of November

gorgo’s picture

Hey Egon0,
Do you mean this module will be abandoned or facebook will no longer support it?

Dave Cohen’s picture

My understanding is the facebook is getting rid of tabs on user pages, but keeping them on Pages (like fan pages, group pages, application about pages...)

When a user visits such a tab, facebook tells you the page ID but not the id of the user visiting. fb_tab.module will soon have a database table for saving tab configuration. So you could prompt the page admin to tell you what to display on the tab. It will take a little code to make it work.

gorgo’s picture

ok I just looked at the facebook developers site and they do state that on November 3rd Profile tabs will no longer be supported.

Dave, The new fb_tab.module sounds just like what I need. I'm still relatively new to PHP and drupal (been doin this for a little less than a year, and built some basic custom modules), but is there any way I can help?

Guy