[Plugin: Simple Facebook Connect] Photo Browsing gets PHP Error when I try to connect
-
Hi,
When I try to connect to ‘Facebook Images’ when creating a new post I get the following error:
Warning: Invalid argument supplied for foreach() in [hidden]/wp-content/plugins/simple-facebook-connect/sfc-photos.php on line 132
Interestingly, the ‘Connect with Facebook’ button is still there and does work, I get the little facebook pop-up window. After I grant authorization, I am returned to the starting window, but no images appear, and that error remains there (as does the connect button).
If I dig out the foreach loop referenced in the error it is:
foreach ($albums as $album) { echo '<td>'; $link = admin_url("media-upload.php?post_id=$post_id&type=$type&tab=$redir_tab&album={$album['id']}"); // retrieve the cover image for the album if (false !== ($photo = sfc_photo_get_photo($album['cover_photo'], $user['access_token']) ) ) { echo "<p><a href='$link'><img src='{$photo['images'][1]['source']}' /></a></p>"; } else { // TODO cover not available } echo "<p><a href='$link'>{$album['name']}</a></p>"; echo '</td>'; if ($i%3 == 0) echo '</tr><tr>'; $i++; }
https://www.ads-software.com/extend/plugins/simple-facebook-connect/
- The topic ‘[Plugin: Simple Facebook Connect] Photo Browsing gets PHP Error when I try to connect’ is closed to new replies.