Post custom text with facebook like button
Asked Answered
N

3

5

i am having some tweets like things and i would like to post that custom text with facebook like button. is it possible if yes then how.

thanks

Novosibirsk answered 22/1, 2012 at 5:53 Comment(0)
B
1

You should add OpenGraph meta tags to the page located on URL you linking your like button. Once user click on Like Button Facebook crawl that page and post content of OG tags to feed.

Read more on Like Button documentation and Open Graph protocol

Broddy answered 22/1, 2012 at 6:44 Comment(0)
S
6

Use Open Graph Tags:

Put this tags on your page head section:

<html xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta property="og:image" content="custom image path" /> 
<meta property="og:site_name" content="name of the website" /> 
<meta property="og:title" content="custom title" /> 
<meta property="og:url" content="url of the page" /> 
<meta property="og:description" content="custom description" /> 
<meta property="og:type" content="website/article/game etc.." /> 
</head>

use Linter to check your custom properties has affected.

More about Opengraph tags

Spirant answered 28/2, 2012 at 9:0 Comment(0)
B
1

You should add OpenGraph meta tags to the page located on URL you linking your like button. Once user click on Like Button Facebook crawl that page and post content of OG tags to feed.

Read more on Like Button documentation and Open Graph protocol

Broddy answered 22/1, 2012 at 6:44 Comment(0)
S
0

Although it is true as both the other commenters say you would need to create a facebook app which then would require a secure canvas URL in the end to be verified. Hence the obstacle is quite high.

Scarper answered 4/7, 2012 at 16:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.