Mar 17, 2010 at 10:26 PM
Edited Mar 17, 2010 at 10:48 PM
My ultimate goal is to create a dynamic tab on a fan page.
First I would like to be able to access photos associated with the page, but I would also like to use the limited data available (I believe) from the user viewing the page.
When I add the tab page to my user profile, I can access user info and successfully create a "Hello Hector" page, but this requires allowing access to the app (not desirable on the fan page tab). I can live without the page user's data if
this is not possible.
When I try to access the photos associated with the fan page, I get various errors associated with what I think might be the issue (no session key). I have tried all sorts of combinations of the FacebookAuthorization attribute without success.
Tried the following:
//nothing at all (Intuitively this is the correct one based on my understanding. I don't wish to prompt user on tab page)
[FacebookAuthorization(IsFbml = false)] //doesn't return when used on fan page tab
[FacebookAuthorization(IsFbml = true)] //gives fb:Redirect error
When I step through the simple code on this page, the call to this.GetApi() does not raise error, but the returned object's SessionKey is empty, which cause calls to api methods to fail.
Any thoughts or links to mvc samples using profile tabs would be appreciated.