Application Tabs shows user as a Unregister User
leovarg - May 19, 2009 - 18:42
| Project: | Drupal for Facebook |
| Version: | 6.x-2.x-dev |
| Component: | Canvas Pages |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hey Dave This is leo, Don't know if this issue was already reported I was looking for it , to see if I was able to solved it by my self or if this was already a fix in progress.
The thing is :
When the app is added in a Tab inside the user profile page , The canvas shows the user as a unregister user (anonymous)
acordding to Facebook wiki : "The UID of the tab owner is provided to your application with the fb_sig_profile_user parameter. A session key is sent with the fb_sig_profile_session_key parameter."

#1
can be this fixed?
#2
Your page callback can take advantage of the fb_sig_profile_user parameter. It would not be correct to treat the user viewing the page as that user.
It might be worthwhile to support a views argument or filter which observes fb_sig_profile_user.
I don't see this as a bug. Am I missing something?
#3
Yes! Dave you are right,
it wont be correct to treat the user Viewing the page as that user.
So I wonder for example in a facebook Fan page tab how to show up a Views argument or filter that shows the Facebook page owner stuff, same thing for a profile page! ?
i'v been playing around with views! filtering and mixing arguments! But have not been able to make it work. It works! In canvas BTW but it seems to be that it's not passing the user parameter,
well Lol i really Don't know since i'm not a developer!
Thx dave
#4
My idea is to set up a tab page, with a view, ( app owner) with the user activity , like texas hold em does,
so i make a view with an Argument "Node: User posted or commented" so the Url of that page will me something like tracker/nameoftheuser
or app.facebook.com/myapp/tracker/nameoftheuser in canvas.
so in order to show up that page owner user content i guess! we can make the view to take that argument from a URL and passed it. , I'm i right?
so if the user profile is http://www.facebook.com/profile.php?id=xxxxxxx we can " $_GET " the " id= " from this url and pass to tracker/xxxxxx@facebook ( +@facebook) wich will give us that especific user info !!
the thing is how to form that php snip
well, i'm just playing around! :)
#5
Unfortunately facebook does not allow the profile tabs to redirect. So you have to make a single callback which produces the right FBML. You can't redirect to another url.
This was true when I tried it. With facebook its possible it has changed, but I'd be surprised.