This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 6 - Pages: 1 - Last Post: 1 Aug 24, 12:41 Last Post By: kdoren Threads: [ Previous | Next ]
kdoren

Posts: 4
Registered: 28-Feb-2024
Facebook commenting with Tiger Skin
Posted: 27 Jul 24, 12:09
 
  Click to reply to this thread Reply
Hello, I made a website for sharing old family photos, using jAlbum and Tiger skin (Linen style). I manage the photos/captions/metadata in Lightroom, and use smart collections to publish the photos to folders for jAlbum to use.

This all works great, Tiger skin is really good, thanks so much for making this skin available.

Issues:

1. I'm using the Tiger skin Facebook commenting. This works, but the Facebook comments (black type) are barely visible over the dark background of the Tiger skin Linen style. Is there some way to change the colors of the Facebook comments to work on the dark background?

2. I'm also using Facebook "Like" button in Tiger skin. This does not work at all (in safari/edge/firefox on Mac). In Edge, it throws error: "Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny'." Safari gives same error but URL is 'https://www.facebook.com/plugins/like/connect'

Thanks!
Kevin
Laza

Posts: 1,795
Registered: 6-Sep-2005
Re: Facebook commenting with Tiger Skin
Posted: 30 Jul 24, 18:13   in response to: kdoren in response to: kdoren
 
  Click to reply to this thread Reply
Facebook has removed the customization of the commenting widget, so the latest version I just uploaded uses a light background, whatever the album's background color.

The "X-Frame-Options" error happens because your site does not allow external sites to create IFRAME content on your web pages. This is a server setting. Google it, or use AI to find the solution!
kdoren

Posts: 4
Registered: 28-Feb-2024
Re: Facebook commenting with Tiger Skin
Posted: 31 Jul 24, 01:42   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Thanks! Your update makes it look much better.

Question: the Facebook comments box is full width (which is good) when rendered in Edge or Firefox on Mac. However, in Safari on the Mac, the comments box is quite narrow (line break after around 20 characters). Any idea why it would display differently in Safari?

Thanks for the tip on the "X-Frame-Options" error with the Facebook 'Like' button. I don't use a server, the site uses AWS Cloudfront in front of an S3 bucket. It's possible to have Cloudfront manipulate the security headers; I'll investigate and take a stab at it.

Thanks,

Kevin

Edited by: kdoren on 31 Jul 2024, 01:45
Laza

Posts: 1,795
Registered: 6-Sep-2005
Re: Facebook commenting with Tiger Skin
Posted: 31 Jul 24, 08:30   in response to: kdoren in response to: kdoren
 
  Click to reply to this thread Reply
Oh, I don't have a Mac, unfortunately. The commenting box has a width: 100%; attribute, which is supposed to make it full width. Odd that Safari makes it narrower. I'll see if I can debug this somehow.
JeffTucker

Posts: 8,243
Registered: 31-Jan-2006
Re: Facebook commenting with Tiger Skin
Posted: 31 Jul 24, 16:26   in response to: kdoren in response to: kdoren
 
  Click to reply to this thread Reply
kdoren wrote:
...the Facebook comments box is full width (which is good) when rendered in Edge or Firefox on Mac. However, in Safari on the Mac, the comments box is quite narrow (line break after around 20 characters).

How does it behave in Brave or Chrome? Safari uses the same engine, though the Apple boffins have a long reputation for doing their own misguided "improvements" to it.
kdoren

Posts: 4
Registered: 28-Feb-2024
Re: Facebook commenting with Tiger Skin
Posted: 31 Jul 24, 20:16   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
On Windows:

Edge and Firefox display the Facebook comments box correctly (full width).

XXX Chrome does not display the Facebook comments box at all.
XXX Error message is:
XXX GET about:blank net::ERR_UNKNOWN_URL_SCHEME. all.min.js?v=5.11.2:8

Correction: Sorry, I had a chrome extension active that was interfering.
Chrome on Windows displays the Facebook comments box correctly.

Edited by: kdoren on 31 Jul 2024, 23:26
kdoren

Posts: 4
Registered: 28-Feb-2024
Re: Facebook commenting with Tiger Skin
Posted: 1 Aug 24, 12:41   in response to: kdoren in response to: kdoren
 
  Click to reply to this thread Reply
Here is what I believe is going on:

Facebook commenting:
The code that handles the comment box (feedback.php) is downloaded from facebook. The file for safari is different than the file for webkit browsers. This likely explains the difference/bug in safari behavior.

Facebook "Like" button:
The code that handles the like button (like.php) is also downloaded from facebook.

If the user is not logged into facebook, the like button returns "x-frame-options" set to "Deny", and the "like" button will do nothing, with no error message to the user. The "Deny" is coming from facebook, so it's not something that can be fixed in cloudfront or jalbum server.

If the user is logged into Facebook, the "like" button works on Firefox (click to like, click again to unlike).

With Safari, if logged into facebook, the like button is buggy. It will throw the "x-frame-options set to deny" error after a few seconds, and the like button will disappear. But it does seem to actually register the like/unlike with facebook, because the changed state can be seen when the page is refreshed.

So my belief is that the bugs are in the php files that facebook pushes to safari. Not much you can do about that.

Thanks again for your help and the quick fix for the font color.

And a big "Thumbs Up" for jAlbum and Tiger Skin, really great stuff.

-Kevin
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums