Facebook API-无法获取页面个人资料图像 [英] Facebook API - cannot fetch page profile image
问题描述
我有一个页面,我无法从中获取公开个人资料图像.为什么会这样,为什么会发生?
I have a page I cannot fetch the public profile image from. Why is that, and why does it happen?
有问题的页面是:(警告:类似于NSFW的剥离器图像,非常抱歉,我只能找到一个示例-仍然无需查看该页面) https://www.facebook.com/pages/Texas-Poolhouse/98758030102
The page in question is: (WARNING: NSFW-ish images of strippers, real sorry, only example I could find - no need to view the page anyway) https://www.facebook.com/pages/Texas-Poolhouse/98758030102
我可以通过图形API访问页面.请注意,结果告诉我ID为98758030102,与预期的一样: https://developers.facebook.com/tools/explorer/?method = GET& path = 98758030102
I can access the page through the graph API. Notice that the results tell me the ID is 98758030102, as expected: https://developers.facebook.com/tools/explorer/?method=GET&path=98758030102
甚至也可以通过这种方式获取图片网址: https://developers.facebook.com/tools/explorer/?method = GET& path = 98758030102%2Fpicture
And even get the image URL this way too: https://developers.facebook.com/tools/explorer/?method=GET&path=98758030102%2Fpicture
但是,使用ID,我无法像往常一样获取图像.我只是得到一个蓝色问号: http://graph.facebook.com/98758030102/picture
However, using the ID, I cannot fetch the image the way I normally do. I just get a blue question mark: http://graph.facebook.com/98758030102/picture
推荐答案
在URL中添加access_token
GET参数可确保被允许查看页面图像的用户能够看到它(在这种情况下为18yo ++).但是,我还没有找到一种通过API确定某些用户何时或为什么无法访问页面的方法.
Adding the access_token
GET parameter to the url makes sure users who are allowed to view the page image will see it (18yo++ in this case). I have, however, not found a way to, through the API, determine when or why pages are not accessible by certain users.
这篇关于Facebook API-无法获取页面个人资料图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!