Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
awaddell
Visitor

problem loading facebook photos

One of the features of our channel allows users to create slideshows with the photos sourced from a variety of services. One of my customer is having trouble with facebook photos and I've debugged it down to some HTTP issue from the Roku to the server where facebook is hosting the actual image.

I ran into an issue once before with photos from Shutterfly, and it turned out they didn't support range requests, but that has since been resolved (it was only a problem in 3.0 beta, never a production build as far as I know). I suspect this has something to do with HTTPS vs. HTTP



Output from 3.0, build 2227

9870 ( +10):Event: roSlideShowEvent.RequestFailed, index: -3 (-3), data: 5, message:
9880 ( +10):Waiting for event ... (forever)
10272 ( +392):LogEvent:Status:unknownerror, LogType:http.error, TargetIp:, HttpCode:-1, Datetime:Wednesday October 26, 2011, OrigUrl:https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-snc6/227241_10150598175525790_580805789_18652777_7558957_n.jpg, Url:https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-snc6/227241_10150598175525790_580805789_18652777_7558957_n.jpg, Method:GET,
0 Kudos
2 REPLIES 2
awaddell
Visitor

Re: problem loading facebook photos

Update.

I fixed it in most places by adding SetCertificatesFile("common:/certs/ca-bundle.crt") in several places, but a problem still exists on roGridScreen where the poster URL's are images fetched over HTTPS (even though I added the SetCertificatesFile call)
0 Kudos
awaddell
Visitor

Re: problem loading facebook photos

I found that the ca-bundle.crt only fixed things some (most) of the time. On some images I still get an error, but it's more of an "untrustedcert" error.

All URL's work fine in a browser. I have to admit, I don't know SSL all that well. Maybe someone can help.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.