[英]How can I show facebook album images on my website using c#?
I created a site where I need to display the images from my facebook album to my personal website but when I call the GetPhotoAlbum().Count
method then it returns a '0' count.我创建了一个站点,我需要将 facebook 相册中的图像显示到我的个人网站,但是当我调用GetPhotoAlbum().Count
方法时,它返回一个“0”计数。
Any ideas why it says a zero count as I have 100's of public photos in my facebbok account?任何想法为什么它说零计数,因为我的 Facebook 帐户中有 100 张公共照片?
Here is the code:这是代码:
FriendList1.Friends = _fbService.GetFriends();
works fine and displays a list of all my friends list.工作正常并显示我所有朋友列表的列表。
Response.Write(_fbService.GetPhotoAlbums().Count);
returns 0 and no photo/album is displayed返回 0 并且不显示照片/相册
You need to get an access token with "user_photos" extended permission.您需要获得具有“user_photos”扩展权限的访问令牌。 You can test this with the new Facebook graph explorer .您可以使用新的 Facebook 图形浏览器对此进行测试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.