Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I came across this problem a few days ago. My entire application was using HTTPS and my issue was only profile pictures being loaded over HTTP... My quick and dirty fix was to manually replace all the profile pictures' domain names. For example,</p> <pre class="lang-php prettyprint-override"><code>str_replace('http://profile.ak.fbcdn.net','https://fbcdn-profile-a.akamaihd.net',$user['pic_square']); </code></pre> <p>You'll have to check and see what URL your profile pictures have. I'd assume they are not coming from exactly the same place. View the URL of your own profile picture and substitute for what I have at <code>https://fbcdn-profile-a.akamaihd.net</code>.</p> <p>After looking harder at the <a href="https://developers.facebook.com/docs/reference/api/" rel="nofollow">Facebook documentation</a>:</p> <blockquote> <p>If you need a picture to be returned over a secure connection, you can set the return_ssl_resources argument to 1: <a href="https://graph.facebook.com/4/picture?return_ssl_resources=1" rel="nofollow">https://graph.facebook.com/4/picture?return_ssl_resources=1</a>.</p> </blockquote> <p>I found an additional parameter called <code>return_ssl_resources</code>, and when passed with <code>true</code>, it returns profile pictures using HTTPS.</p> <pre class="lang-php prettyprint-override"><code>$fql = "SELECT uid, name, pic_square FROM user WHERE uid=me()"; $param = array( 'method' =&gt; 'fql.query', 'query' =&gt; $fql, 'return_ssl_resources'=&gt;1); $fbuser = $facebook-&gt;api($param); </code></pre> <p>It worked like a charm, and I stopped getting the mixed security warnings. I hope this helps!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload