Add to Info & Add to Profile

Aug 30, 2008 at 4:53 PM
Edited Aug 30, 2008 at 4:53 PM
Hi -

I apologize if I'm posting this topic in the wrong forum but I hope someone can help.

I'm using the below code to display the "add to info" and "add to profile" buttons because the .NET app is in an  iframe so cannot use the fbml tag. The buttons display fine and they work too but the issue I'm having is that adding this code causes my session to get lost. On first load it works fine but when I refresh or navigate to a new page, all api calls such as _fbService.users.getInfo() or similar returns a session invalid. If I remove this code the app works with no session issues.

 window.onload = function() {
        FB_RequireFeatures(["Integration"], function() {
            // Change the first arg to your api key, and the second to the path to your receiver.html file.
            FB.Facebook.init(appkey,'receiver.html', null);

            // These two lines add a "add to profile" button under the given id.
            FB.Integration.showAddSectionButton("profile", document.getElementById("addSection"));
            FB.Integration.showAddSectionButton("info",    document.getElementById("addInfo"));

Thank you!

Aug 31, 2008 at 12:39 AM
Are you using IFrameMaster or IFramePage?