Topic-icon Changing what appears on facebook

Active Subscriptions:

None
14 years 6 months ago #16539 by noozi
Hello,

I am using JFBConnect and SobiPro for a directory site. I want a user to be able to "like" a page/business and have the business name and description show up on the facebook feed. Right now, the page title is the category name (sobipro issue) so the "likes" in the feed are misleading. How can I make it so that I can set a custom page name and description for the facebook like?
The topic has been locked.
Support Specialist
14 years 6 months ago #16542 by alzander
To specify the title, description or image you want used when the Like is clicked, you need to use Open Graph tags. Open Graph integration in JFBConnect is enabled by default, but you can check the setting in the Social Configuration -> Open Graph tab. Then, all you need to do is add the following tag to your listing or article, or any other place on the page to specify the data you want used:
{JFBCGraph title=Title for page}
{JFBCGraph descriptoin=Description for listing}
{JFBCGraph image=http://site.com/link-to-image.jpg}
It will take Facebook 24-48 hours to update the data for new like's, so if you try right away, you may not see a difference. You can use the debug tool to see what Facebook 'sees' on your page from the Open Graph tags:
developers.facebook.com/tools/debug

You can also use the Open Graph tab in the social configuration area to specify a default image, in case you haven't explicitly set one on a page using the tag above. This is good for using your logo or something, just to make sure some random image isn't shown. To do so, add the following tag into the defaults box:
image=http://site.com/good-default-image.jpg

If no tags or defaults are set, JFBConnect will simply use whatever the meta data title and description are. Not all components set this (or they set it to something generic), so it's best to specify it on pages that you want control over.

For more about JFBConnect's Open Graph features, see:
www.sourcecoast.com/jfbconnect/features/...pen-graph-for-joomla

Hope that all helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #16889 by ryaarm
Thanks for this Alex! This just solved a BIG question I had. I am now happily adding OpenGraph info to my articles :)
The topic has been locked.
Support Specialist
14 years 5 months ago #16899 by alzander
Glad to hear it. Just so you know, if you already set meta titles and descriptions for a page, JFBConnect will automatically use that for the OG title and description. Of course, you're free to overwrite it, but you don't have to duplicate the work if you don't want to change it. We definitely recommend setting at least a default image for the whole site, and then, where possible, a unique image per page.

Good luck!
Alex
The topic has been locked.