× Joomla Facebook Connect support forum

Topic-icon How to choose which picture in a story gets posted to Facebook?

Support Specialist
Jen,
I see the OG tag in the page pointing at the AdAgency image. Looking at the HTML on the page, that image is the first image inside your articles contents, which is why JFBConnect is pulling it. How is that image being inserted there? Is that through an AdAgency Content plugin or some other method? If it's from a content plugin, please make sure that the JFBConnect Content plugin is ordered above (before, lower number) it.

Ultimately, you want JFBConnect's plugin to scan the article for the first image -before- AdAgency adds its image to it.

If you aren't using a Content plugin for AdAgency, again, let us know how that ad is being inserted, and we'll do what we can to help figure out a solution. Unfortunately, if it's not a content plugin, the ultimate solution may still be that you have to manually add the {JFBCGraph image=xxx} tag to the article.

Thanks, and keep us posted,
Alex
The topic has been locked.
Active Subscriptions:

None
Hello! I´ve got a question... I´m setting up a game-section on my website and would like the game-image to be the image that gets posted to Facebook.

Is it possible to write something like this? {JFBCGraph image=$game->imgname} Can I include code in the Graph or is it strictly for url-adresses?
The topic has been locked.
Support Specialist
Yup. It's almost as easy as you say, but you'll need to add the opening and closing php tags as well. I can't remember if Virtuemart also includes the full URL, but that will be required as well, so you'll need to check the final code on the page for the image to make sure it looks right. I believe the code would look something like:
See Post Below

Hope that helps, but if you can't get it, let us know. You can definitely do what you're looking for, and I'll probably add that note to our Virtuemart integration questions.. since we don't have any.. and that's a good one :)

Thanks,
Alex
The topic has been locked.
Support Specialist
Let's try that again:
{JFBCGraph image=http://yoursite.com<?php echo $game->imgname; ?>}
The topic has been locked.
Support Specialist
Just added a note of how to add the image dynamically to fly-pages. Hope between the post above and the link below, you get what you're looking for:
www.sourcecoast.com/jfbconnect/docs/thir...ation-for-virtuemart

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Thanks for a quick and correct response! Worked out perfect! :)
The topic has been locked.
Support Specialist
Roger,
Glad to hear that worked for you. Should you need anything else, just let us know.

Finally, please consider leaving a rating and review on the JED for JFBConnect and/or our support. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Good luck to you and your site,
Alex
The topic has been locked.