문제

I got FB application that makes some changes on user uploaded photos and output them as desktop wallpapers. I would like to predefine current user screen resolution but it looks impossible to achieve that from iframe (due to security reasons).

Are there some special tricks you can do inside FB application iframe to get this informations?

도움이 되었습니까?

해결책

Solution is really simple. With new Facebook channelUrl you are gaining access to original screen.width and screen.height properties.

The channel file addresses some issues with cross domain communication in certain browsers.

More to read here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top