Topic-icon like button in Phoca Gallery 4.1.2

Active Subscriptions:

None
hello

perhaps you can help me to implement the like button in Phoca Gallery. i will have the button only in Detail Picture box. please see Picture attached.

thanks a lot
The topic has been locked.
Support Specialist
11 years 1 month ago #52547 by mel
You will first need to find the PHP template view file for displaying the Detailed picture. I'm not sure of the path for this view file in Phoca Gallery, so usually it's in the front-end component directory in /views/VIEW_NAME/tmpl/LAYOUT_NAME where the view and layout are specific to the component. Once you do that, we'd suggest creating a template override for the file. Then adding the Facebook Like button should be simple with our Easy-tags. You'd just add {JFBCLike href=URL_TO_LIKE} to the file in the appropriate place. For more detailed parameters to customize the Like button, see the JFBConnect backend > Social > Examples tab.

Let me know if you run into problems adding the button after trying the above.

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 1 month ago #52551 by reinhold.brunner
Hello Melissa,

the place is right and works to place Buttons on right plase. but i get error using the like button.

Necessary value for object missing. "og:title" - what can i do there ?

best,

Reinhold
The topic has been locked.
Support Specialist
11 years 1 month ago #52562 by mel
This means that there needs to be an Open Graph tag on the page for og:title. Unless you're purposefully having JFBConnect skip that tag, we usually attempt to at least set the og:title tag to the page title. Could you provide a URL to where I can see the detailed view to look at the page source?

Also, if you want to force adding this tag to the page, there are a couple different options: 1) Adding an {SCOpenGraph title=My Title} tag to the view and 2) Setting a default title value in the JFBConnect > Open Graph > Configuration > Defaults setting.

-Melissa
The topic has been locked.
Support Specialist
11 years 1 month ago #52566 by alzander
Reinhold,
Facebook uses special Open Graph tags to set what the page would look like in a users feed, like the title, description and image to show. JFBConnect will try to set the title automatically using the meta title for the page. It sounds like the title may not be set on that page, which means JFBConnect can't set the og:title tag automatically.

If you're already adding the {JFBCLike} tag, you can add the following tag underneath it:
{SCOpenGraph title=Title for this page}
That will set the title for your page and should let Facebook scan the page properly.

I hope that helps, but if you need anything else, just let me know.

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

None
11 years 1 month ago #52570 by reinhold.brunner
Hello Melissa,

thanks a lot, great work. Now it works like charme.

best,

Reinhold
The topic has been locked.
Support Specialist
11 years 1 month ago #52582 by mel
Great, glad that solved your issue.

-Melissa
The topic has been locked.