user578542
user578542

Reputation: 113

Facebook App Iframe set auto grow

We are calling FB.Canvas.setAutoGrow() before end of the body tag in our app. But it is not working. Where should we put the autogrow to make sure it gets called

Upvotes: 1

Views: 2872

Answers (2)

Nick Ring
Nick Ring

Reputation: 29

It should be included after this area:

FB.init({
//SETTINGS HERE
});

If you believe you have everything set up correctly and it still isn't working, make sure you have the correct doctype set. That can cause it not to work in versions of IE.

Example:

<!DOCTYPE html>

Hope that helps...

Upvotes: 0

DMCS
DMCS

Reputation: 31870

Just after you call the FB.init() function is where I usually put it. That's usually inside of the fbAsyncInit function.

Upvotes: 1

Related Questions