Facebook的个人资料图像在spotify [英] Facebook profile images in spotify

查看:118
本文介绍了Facebook的个人资料图像在spotify的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我知道我可以通过http检索图片://graph.facebook.com/ [user_id] /图片,但这只是重定向到实际图像。图像仍然会被阻止,除非我在清单文件中允许它。



我目前只测试了3个配置文件,图像位于这两个服务器上。



https:// fbcdn-profile-a .akamaihd.net /



http: //profile.ak.fbcdn.net/



我猜想有不少服务器持有个人资料图片,我如何让我的应用程序面向未来?



提前感谢

解决方案

自己的显示个人资料图片的应用程序在 RequiredPermissions 中使用以下两个条目:

 RequiredPermissions:[
https://fbcdn-profile-*.akamaihd.net,
http://*.fbcdn.net
],

这两个(注意星号)应该也适用于你的应用程序。尽管如此,我不能保证Facebook不会改变它! :-P


I want to display facebook profile pictures in my spotify app, but what urls should I allow in the manifest file?

I know I can retrieve the images through http://graph.facebook.com/[user_id]/picture but that is just a redirect to the actual image. The image will still be blocked unless I allow it in the manifest file.

I've only tested with 3 profiles so far and the images are located on these 2 servers.

https://fbcdn-profile-a.akamaihd.net/

http://profile.ak.fbcdn.net/

I'm guessing there are quite a few servers holding the profile pictures, and how can I make my app future-proof?

Thanks in advance!

解决方案

Our own apps that display profile images use the following two entries in RequiredPermissions:

"RequiredPermissions": [    
    "https://fbcdn-profile-*.akamaihd.net", 
    "http://*.fbcdn.net"    
],

Those two (pay attention to the asterisks) should be fine for your app too. I can't guarantee that Facebook won't change it in the future, though! :-P

这篇关于Facebook的个人资料图像在spotify的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆