Search code examples
facebook-graph-apihttpsphotos

Secure Browsing Method of Getting Facebook Photos Using APIs


Using the facebook graph you can get photo information as follows: https://graph.facebook.com/20531316728

However the link they provide to actually grab the photos are not secure and use http: http://profile.ak.fbcdn.net/hprofile-ak-snc4/174597_20531316728_2866555_s.jpg

Replacing http with https doesn't do the trick because you get a security warning: https://profile.ak.fbcdn.net/hprofile-ak-snc4/174597_20531316728_2866555_s.jpg

Facebook is insisting that all apps use secure browsing and use https. However my app uses facebook photos, which cannot be accessed because they begin with http.

Does anyone know how to get around this problem?


Solution

  • I found the answer to my own question. You can add a parameter to get a the ssl parameter:

    https://graph.facebook.com/20531316728&return_ssl_resources=1