开发者

How can I show facebook album images on my website using c#?

开发者 https://www.devze.com 2023-03-20 14:38 出处:网络
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.

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.

Any ideas why it says a zero count as I have 100's of public photos in my facebbok account?

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


You need to get an access token with "user_photos" extended permission. You can test this with the new Facebook graph explorer.

0

精彩评论

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