Facebook share on Publications?

Go down

Solved Facebook share on Publications?

Post by Zordon on September 13th 2017, 11:37 pm

So I saw that facebook share is missing. I tried adding that code on the template
Code:
<li><amp-social-share type="facebook" width="40" height="40"></amp-social-share></li>

but I get this error message


Any ideas of how to make it work?
avatar
Zordon
Forumember

Male Posts : 66
Reputation : 2
Language : greek

http://prig.forumgreek.com

Back to top Go down

Solved Re: Facebook share on Publications?

Post by APE on September 13th 2017, 11:48 pm

Hello where did you get that code from ?



avatar
APE
Administrator
Administrator

Male Posts : 12061
Reputation : 1209
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Facebook share on Publications?

Post by Zordon on September 14th 2017, 12:27 pm

I went to Display->Templates->Publications and wrote a similar code to those

Code:
    <li><amp-social-share type="twitter" width="40" height="40"></amp-social-share></li>
                <li><amp-social-share type="gplus" width="40" height="40"></amp-social-share></li>
                <li><amp-social-share type="email" width="40" height="40"></amp-social-share></li>
                <li><amp-social-share type="pinterest" width="40" height="40"></amp-social-share></li>
                <li><amp-social-share type="whatsapp" width="40" height="40"></amp-social-share></li>

But it didn't work. Facebook logo appeared but share doesn't work, I get the error I mentioned
avatar
Zordon
Forumember

Male Posts : 66
Reputation : 2
Language : greek

http://prig.forumgreek.com

Back to top Go down

Solved Re: Facebook share on Publications?

Post by skouliki on September 14th 2017, 12:32 pm

hello 
Do you want to add share buttons or FB plugin?
avatar
skouliki
Graphic Designer
Graphic Designer

Female Posts : 3738
Reputation : 618
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Facebook share on Publications?

Post by Zordon on September 14th 2017, 5:17 pm

Share button. It would be pretty helpful to just share directly the publications I write to the facebook page of my forum
avatar
Zordon
Forumember

Male Posts : 66
Reputation : 2
Language : greek

http://prig.forumgreek.com

Back to top Go down

Solved Re: Facebook share on Publications?

Post by Zordon on September 14th 2017, 5:22 pm

I just figured it out. The correct code is
Code:
<li><amp-social-share type="facebook" width="40" height="40" data-param-app_id="254325784911610"></amp-social-share></li>

Problem solved, you can lock it
avatar
Zordon
Forumember

Male Posts : 66
Reputation : 2
Language : greek

http://prig.forumgreek.com

Back to top Go down

Solved Re: Facebook share on Publications?

Post by SLGray on September 14th 2017, 7:36 pm

Thanks for posting the solution.

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43077
Reputation : 3048
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum