Facebook API: Why can I load a user's image off one domain but not another?

前端 未结 5 916
夕颜
夕颜 2021-01-16 05:07

Image 1 is at fbcdn-photos-a.akamaihd.net

Image 2 is at fbcdn-sphotos-a.akamaihd.net

The crossdomain files are identical:

https://fbcdn-sphotos-a.aka

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-16 05:57

    This worked for me:

    loader.load(new URLRequest("https://graph.facebook.com/" + user.uid + "/picture?type=normal"), new LoaderContext(true, null, SecurityDomain.currentDomain));
    

提交回复
热议问题