Discussions
Activity
Sign In
How it works
Newscoop Support
facebook like box don't show artical title
Vote Up
0
Vote Down
George Hadjichristofi
April 2012
Posts: 85
Member
Hello,
i have this code
{{ if $gimme->article->content_accessible }}
<div id="fb-root">
</div>
<script src="
http://connect.facebook.net/en_US/all.js#appId=100924830001723&xfbml=1
">
</script>
<fb:like href="http://{{ $gimme->publication->name }}{{ uri }}" send="true" width="400" show_faces="true" font="">
</fb:like>
<script src="
http://platform.twitter.com/widgets.js
" type="text/javascript">
</script>
<a href="
http://twitter.com/share
" class="twitter-share-button" data-text="{{ $gimme->article->name }}" data-via="{{ $gimme->publication->name }}">Tweet</a>
{{ /if }}
if like at the Article on the facebook see every time facebook website title not article title.
how to fix this problem?
3 Comments
sorted by
Votes
Date Added
Vote Up
0
Vote Down
ljuba rankovic
April 2012
Posts: 156
Member
You probably don't have Open graph meta tags in <head> section of your pages; it should be somethnig like this:
{{ if $gimme->article->defined }}{{* Open Graph protocol metatags for Facebook sharing *}}
<meta property="og:title" content="{{$gimme->article->name|html_entity_decode|regex_replace:'/&(.*?)quo;/':'"'}}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ url options="article" }}" />
<meta property="og:site_name" content="{{ $gimme->publication->name }}" />
<meta property="og:description" content="{{$gimme->article->deck|strip_tags:false|strip|escape:'html':'utf-8' }}" />
{{ list_article_images }}
<meta property="og:image" content="{{ $gimme->article->image->imageurl }}" />
{{ /list_article_images }}
{{ /if }}
--
Ljuba Rankovic
Senior Front End Developer, Sourcefabric
ljuba.rankovic@sourcefabric.org
http://www.sourcefabric.org
http://www.twitter.com/Sourcefabric
Vote Up
0
Vote Down
George Hadjichristofi
April 2012
Posts: 85
Member
i have this an the problem is the same
:)
Vote Up
0
Vote Down
ljuba rankovic
April 2012
Posts: 156
Member
Send the link to some article so we can see what's wrong.
--
Ljuba Rankovic
Senior Front End Developer, Sourcefabric
ljuba.rankovic@sourcefabric.org
http://www.sourcefabric.org
http://www.twitter.com/Sourcefabric
Add a Comment
Start a New Discussion
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
8,397
Sourcefabric
↳
Announcements
25
Newscoop
↳
Newscoop Support
2,189
↳
Newscoop Development
722
↳
Newscoop Security
13
↳
Newscoop Documentation
17
↳
Newscoop Themes
69
Airtime
↳
Airtime Support
3,139
↳
Airtime Development
1,286
↳
Airtime Français
146
↳
Airtime Documentation
14
↳
Airtime Hacks
102
↳
Promote your station!
37
↳
Airtime Security
11
Booktype
↳
Booktype Support
277
↳
Booktype Development
55
↳
Booktype Documentation
7
Superdesk
↳
Superdesk Development
264
↳
Web Publisher
21
Poll
No poll attached to this discussion.
Top Posters
Albert FR
1978
Martin Konecny
1860
Andrey Podshivalov
1526
Voisses Tech
1423
John Chewter
899
Daniel James
844
Roger Wilco
784
hoerich
627
Paul Baranowski
389
Cliff Wang
339