Jump to content
TNG Community

Facebook Sharing


shajra

Recommended Posts

When I share a page on Facebook, the image that shows up is that of the upload arrow and not the image of the person

image.png

Is there a way to determine which image shows up there?

Thanks!

 

 

Link to comment
Share on other sites

TNG should be putting the right tags on the page if it's a Media item. eg if you look at this page

http://lisaandroger.com/genealogy/showmedia.php?mediaID=66&medialinkID=93

and then view the Source Code of that page you'll see a bunch of lines that start like this

Quote

meta property="og:xxxx

 

This is the Open Graph tags that Facebook uses to get a thumbnail to go with a link.

If you're asking about somewhere else in TNG, then it's not so well organised to give Facebook the tags it needs.

I do have a Mod that does the same thing for the getperson.php page...

http://lisaandroger.com/downloads/download-info/facebook-open-graph-tags-on-getperson-php/

If that's what you're asking about

Roger

Link to comment
Share on other sites

 

On 9/11/2022 at 1:19 AM, theKiwi said:

This is the Open Graph tags that Facebook uses to get a thumbnail to go with a link.

If you're asking about somewhere else in TNG, then it's not so well organised to give Facebook the tags it needs.

I do have a Mod that does the same thing for the getperson.php page...

http://lisaandroger.com/downloads/download-info/facebook-open-graph-tags-on-getperson-php/

If that's what you're asking about

Roger

As Roger has said, Facebook is pretty strict in how & when it would display thumbnails.

I have a facebook group where  I regularly post a link to an individul's tng page on death anniversary.
image.png

Sorry. Please ignore what I say below. I should have seen that Roger has got the a cfg file available for download.

My solution is very similar to the solution of Roger. I have a file which collates open-Graph data and this is inserted in the getperson.php as an include statement. It may be useful to have a TNG mod using one of the two solutions.

I write Wordpress plugins but have absolutely no idea how to write TNG mods.

Hope that helps.

Edited by mahesh
Apologies: back tracking
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...