开发者

Cannot get Facebook Profile Picture Size

I am trying to get the size of Facebook user's profile pictures by using the following code:

getimagesize('http://graph.facebook.com/XXXXXXXXXXXX/picture?type=large')

where XXXXXXXXXXXXXX is the Face开发者_运维问答book's user ID.

When I tested the code on my local machine, I could get the image size back. However, when I tested on remote server with www.domain.com, the (http://graph.facebook.com/XXXXXXXXXXXX/picture?type=large) return nothing.

What's possible reason of this issue? Can anybody give me some hints?

Thanks.


The getimagesize() requires that allow_url_fopen is set to "1" in php.ini. You may want to check that setting on your remote server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜