facebook album photos in simple lightbox?
-
I developed a quick plugin that pulls photos from a facebook album unto a wp page via a shortcode.
I was hoping that Simple Lightbox could work with that, and it does actually when the code pulls images from an album of a page that I (or the app owner) have admin permissions for). The difference is that in other cases (when Lightbox plugin does not seem to work) the image URLs have some facebook specific string appended to the end of the regular image url. Something like
src="https://scontent.xx.fbcdn.net/..._180880741_n.jpg?oh=35982367e68cb06..."
and that’s what seem to confuse Lighbox plugin. I did not look into the code. This is my assumption from the behavior I observed.
I want to clarify that the thumbnail images themselves load just fine. The problem is with loading the popup image. The loading image spins forever. That is the<a href="https://scontent.xx.fbcdn.net/..._180880741_n.jpg?oh=35982367e68cb06..."
– the href parameter also have that extra string at the end.
When the album belongs to a page, I am admin of, then the images’ URLs that become available to me via the facebook api have no irregular ending, and everything works great. I guess facebook uses those strings to check user permissions and stuff. I tried removing them. Then the images become inaccessible.I was just hoping that there is a quick fix for this that would not effect anything else. I understand that the primary purpose of the plugin is to render wp proper images via a nice light box. It works great for that! Just a request / suggestion…
- The topic ‘facebook album photos in simple lightbox?’ is closed to new replies.