Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Where is the Open Graph Code Located?

7 years 4 months ago
  • Danny's Avatar
    Topic Author
  • Danny
  • Offline
  • Fresh Boarder
  • Posts: 34
  • Thank you received: 2
Licenses:
JomSocial Active AdAgency Expired Socialize Expired

ISSUE SUMMARY:
I have an issue with my Open Graph as I am using S3 to store my images and remove the original images of my server when I use the "Share" option the Facebook share image is looking for the original image on my server but I need to rewrite the image url to point o the S3 instance on Amazon. I don't know where the share files are located.


STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

7 years 4 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

hi Danny,

I just test share the S3 image on your site, and its seems everything works fine..



thank you

Attachments:
7 years 4 months ago
  • Danny's Avatar
    Topic Author
  • Danny
  • Offline
  • Fresh Boarder
  • Posts: 34
  • Thank you received: 2
Licenses:
JomSocial Active AdAgency Expired Socialize Expired

Hi Dimas

I am referring to a photo gallery, please see below and share you will see that it is not using the S3 instance but the local version

66raw.com/raw-nation/view-member-pictures/album?albumid=771

Attachments:
7 years 4 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Danny,

Well this is a bug.. I will report this to our dev.

thank you!

7 years 4 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi danny,

Here is the fix,
- open this file components/com_community/views/photos/view.html.php,find this code :

CHeadHelper::addOpengraph('og:image', JUri::root() . '/' . $photo->image, true);
replace to :
$storage = CStorage::getStorage($photo->storage);
                 CHeadHelper::addOpengraph('og:image', $storage->getURI($photo->image), true);

and then find this code :
CHeadHelper::addOpengraph('og:image', JUri::root() . $photo->image, true);
replace to :
$storage = CStorage::getStorage($photo->storage);
             CHeadHelper::addOpengraph('og:image', $storage->getURI($photo->image), true);

I see you have duplicate og meta tag on your site from JFBConnect, so if its still not working, it can be caused by JFBConnect

Thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW