Can I use the XFBML code for a Facebook like button?

  • 1
  • Question
  • Updated 7 years ago
  • Answered
I copied the XFBML code from the facebook site - http://developers.facebook.com/docs/r...

It seems to work, but it does not provide the option for the user to add a comment, as it says it will.
By the way, the facebook page that your cutrrent help info specifies for the like button, links on to the one I have specified.
Photo of Jubeadilation

Jubeadilation

  • 26 Posts
  • 1 Reply Like

Posted 7 years ago

  • 1
Photo of Nazlie

Nazlie

  • 1721 Posts
  • 51 Reply Likes
Hi fruitforest

Can you try using the iframe code instead of the XFBML code on your Yola site to see if users can add comments then? I am not sure whether the FBML code works correctly on your site.

Thanks for the the note about the link on our tutorials. We are in the process of updating the information and will check the links!

Let us know if the iframe code works.

Thank you
Nazlie
Photo of Jubeadilation

Jubeadilation

  • 26 Posts
  • 1 Reply Like
The iframe option does not allow for comments. It is a more basic option
Photo of Gop

Gop

  • 189 Posts
  • 54 Reply Likes
http://developers.facebook.com/docs/r...

The Like will add a comment but not in the way that you think. It adds it to the users page. A delayed line appears after your "like" for user to add a comment

The plugin comment code uses a standard comment with the XFBML code. You can add the "like" code as a second item.
Photo of Jubeadilation

Jubeadilation

  • 26 Posts
  • 1 Reply Like
Thanks Gop. I understand that if the user hovers over the like button, the field for the comment entry should then be displayed. This is not happening for me.
I'm afraid I don't understand your 2nd paragraph.
Photo of Gop

Gop

  • 189 Posts
  • 54 Reply Likes
If you go to this URL: http://developers.facebook.com/docs/r...
You can add the comment plugin.
This plugin has a "like" button included. The plugin shows a permanent entry window. If you make a comment with this plugin then it will appear on your site and your FB page.

The "Like" button you spoke of earlier has a comment facility but a comment is posted on your FB page only. You mentioned that it didn't allow you to make a comment when you hovered? This option only appears after you make the "like" and hover over the prompt. A small window opens and you can add a comment. When you "enter" it the typing disappears and it is posted to your FB page.

You can use the XFBML code for both of these plugin codings.
Photo of Jubeadilation

Jubeadilation

  • 26 Posts
  • 1 Reply Like
I really appreciate your help Gop.
I still cannot get to the comment on the like button. I click on the like button, it immediately goes to "Frances harper likes this" without any opportunity to add any comment. You can see it here: http://www.jubeadilation.com/gemspray... (both types of like button are there)
Photo of Jubeadilation

Jubeadilation

  • 26 Posts
  • 1 Reply Like
Hi Gop! I have been trying out the comments feature you suggested. I had to get an application ID first - this shows how inexpert I am at this sort of thing. The comments seem to work just as I was hoping. If you have time I have another question - is it possible to include a thumbnail with the comment on the facbook page?
Photo of Gop

Gop

  • 189 Posts
  • 54 Reply Likes
Hello,

I was able to get the comments to work on your "Like" facility. Here's how it worked: After "liking" then allow your mouse to hover over your name. A small box shows with "What would you like to say?" or something. So you add your like comment here. This will show on your Facebook but not on you site.

The second answer is yes. The Avatar thumbnail from your Facebook will show up on your Yola page with the like and the comment.

Facebook plugins are all Facebook driven. Yola is a client only and doesn't allow for manipulation of the FB facilities.
Photo of Gop

Gop

  • 189 Posts
  • 54 Reply Likes
I forgot: You will have to login to Facebook to show your avatar thumbnail. Anonymous comments won't show this!
Photo of Jubeadilation

Jubeadilation

  • 26 Posts
  • 1 Reply Like
Oh yes!!!! I finally see how to add the comment after "liking". Wow, but this isn't very user-friendly is it? How many users realise there is a comment option here?

On the comments feature, I realise my avatar gets displayed, but I wondered if I could send a picture to represent my web page. Some other wall posts seem to manage this, particularly if there is a web link.
Photo of Gop

Gop

  • 189 Posts
  • 54 Reply Likes
Oh sorry. misunderstood.

If you send a link then yes an image of the link will be included if it's found. If you want to send your website link image then I'm not sure of the best way to do this but leave it with me. I notice that if I send a like with FB from a blog post it seems to pull up an image within the link.

If you are sending another link of say an article or post from another or your own website, the FB seems to scan the post or page and pick an image from this. I don't know the rationale behind this. I am sure that you can be selective but probably means getting into the depths of the API of FB. Some of this API stuff is in php or other server side languages and can't be modified for use with Yola.

Have sent a message to you website on the contact us facility.
Photo of Jubeadilation

Jubeadilation

  • 26 Posts
  • 1 Reply Like
Yeah, I remembered that you sometimes get a choice of what to display, so I went and refreshed my memory. If you are on your news feed, click the "link" option, and then enter a web page, you are able to select from a group of thumbnails taken from that page,
No point in getting in too deep for me on this query, because it wouldn't take much to leave me bamboozled!! Thanks again.
Photo of Nazlie

Nazlie

  • 1721 Posts
  • 51 Reply Likes
Hi Gop

Thank you for investigating this and sharing your findings!

We appreciate your help here! :)

Nazlie