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)
Tags (1)
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.
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!