Where do I put the code for the like button on facebook on my facebook page? - facebook

I don't know where to put the code onto my facebook page. I have searched everywhere and no one and no site gives me a specific answer enough for me to understand.

Well, here is facebook's official page. http://developers.facebook.com/docs/reference/plugins/like/
It explains all the tags and how to use them as well as a generator for whatever facebook url you might want.

Related

Is it possible to test if some page has facebook like button?

I have authorized Facebook app, that is, ability to use FQL.
I have to know if some url in the internets have facebook like button. I've read the manual and don't find anything that helps me. Have I missed something?
I suppose you need to scrape the page and look for the related Facebook tags. Another thing that may work is checking the page against the Facebook graph end-point like so (example 1 - 2):
http://graph.facebook.com/PAGE_URL_HERE
http://graph.facebook.com/http://www.masteringapi.com/
http://graph.facebook.com/http://www.masteringapi.com/tutorials/how-to-use-facebook-registration-plugin-as-your-registration-system/15/
If fields like likes or shares is present then maybe a like button is there. Yet that also could mean that someone just posted the link on Facebook.

Creating a Facebook App

I am building a website for a client. He has a Facebook page for his business. On the homepage of his site, he wants a feed that will pull in all the updates from his business' Facebook page.
Now, I felt this would be very easy to implement (maybe it is) but I have scoured the Facebook API for any simple way to do this. I am having a lot of trouble understanding which way I should do this. I've settled on using JS to access it, but have no idea where to go from there.
Do I need to create an app? If so, which options do I select so I can access the clients facebook page?
How do I get my app that I've created to show up so a user can authorize it? I have so many questions, and Facebook isn't very good at giving me answers.
Any help is greatly appreciated.
I would suggest you just use the facebook page's RSS feed.
Example
Take his page URL e.g.
https://www.facebook.com/pages/Lazery-Attack/6001014870
Take the number at the end of the url off, and plug it into the facebook feeds URL e.g.
https://www.facebook.com/feeds/page.php?format=rss20&id=6001014870
Voila, you now have an RSS feed you can integrate into the website you are building.
URL Breakdown
The URL is broken down the following way:
https://www.facebook.com/feeds/page.php?format={feedFormat}&id={PageID}
Vaid feed formats are:
RSS - rss20
Atom - atom10
JSON - json
Other Examples
Atom
https://www.facebook.com/feeds/page.php?format=atom10&id=6001014870
JSON
https://www.facebook.com/feeds/page.php?format=json&id=6001014870
Take a look at the facebook API, right here: http://developers.facebook.com/docs/reference/api/page/
You can give it a try here:
http://developers.facebook.com/tools/explorer/?method=GET&path=19292868552%2Fposts
The like box: http://developers.facebook.com/docs/reference/plugins/like-box/ also has the latest posts available
The simplest way is to add a Like Button to the page and make sure "show Stream" is checked on as this will show all recent posts. You can customise the appearance also (e.g. width, height etc).
No App or messy API calls needed!
Try it out here and simply paste the resulting code into your webpage:
http://developers.facebook.com/docs/reference/plugins/like-box/
Not an app, but the Facebook Social Plugins over here at Facebook For Pages

Facebook Like Button HTML5 code Errors

I'm currently having trouble using facebook like button in html5 version, it seems that everytime the visitor of my wordpress blog liked a blog post, it's not working. It will work for a while but when you refresh it, it goes back to active button which is very strange since the user already liked the blog post.
I also encountered that when i liked my own blog post, it fetched the wrong details. example, i liked the blog post #1 but when i check my facebook, it the fetched image is wrong, the description and title is also wrong.
what is the proper way to add a facebook like button in wordpress blog?
any help?
I also encountered the same error before. I already tried the linter to debug it but it really doesn't work. Anyway, my simple solution to that is I changed my facebook like code to Iframe version (since html5 give me crap, there's no harm if I use iframe lol). I don't encountered any errors with that. It works perfectly.
about your question on how to add facebook like in your index file or multiple blog posts in wordpress, the link (guide on how to...) might help you. I used that before. It also discusses about twitter tweet, google plus and pinterest pin it button's wordpress implementation.
have a good day!

Like button for Facebook page shows generic Facebook description in News Feed

I want a Like button on my web site that Likes my Facebook profile (rather than my web page), so that when a user clicks it they subscribe to my Facebook posts.
I've created the Like button using the tool at https://developers.facebook.com/docs/reference/plugins/like/
Further down that page there is an FAQ entry:
Can I link the Like button to my Facebook page?
Yes. Simply specify the URL of your Facebook page in the href
parameter of the button.
So, I've edited the href parameter to point to my Facebook page. eg:
https://www.facebook.com/myfacebookid
When a user clicks the Like button it has the desired effect. The user ends up having Liked my Facebook page. This is easily verified by the user going to my Facebook profile and checking that the Like button has changed to Liked.
But. When the user clicks the Like button, and entry appears in their News Feed with a generic Facebook description. ie:
Facebook is a social utility that connects people with friends and
others who work, study and live around them. People use Facebook to
keep up with friends, upload an unlimited number of photos, post links
and videos, and learn more about the people they meet.
I don't want a generic post about Facebook to appear. I want the description to relate to my Facebook account and/or web site.
Normally, I could modify this behavior with the Opengraph og: description tag, but as the page in the href is a Facebook page and not my own, I can't control the Opengraph tags.
I'm pretty sure that this was working okay before I enabled timeline for my account, so maybe this is a timeline bug?
So, how do I add a Like button which a) Likes my Facebook profile rather than one of my own web pages, and b) Posts a description of my Facebook profile rather than give a generic Facbook description?
Are all your fields in the info part of your page filled in, and/or completed? I just tested your theory and it seemed to work as expected, only thing is I know all fields in "info" are filled it. Give that a try.
This may happen if you have filled invalid/incomplete/wrong og tags in past and later changed them. Facebook's cache creates problem sometime.
Try putting all the entries (i.e. all og tags) and then debug them here http://developers.facebook.com/tools/debug. This debugger gives a detailed info about the url with og tags and also clears the cache for you.
This should solve the problem.
You have 3 important fields that used on page opengraph: Name,Description,Profile Image.
They are used when some one post your link on Facebook, or Google or some else web service that handle opengraph.
Actually, the suggested answers currently do not work and there is an open bug / ticket on Facebook for it. Up to now, there's no fix.
The problem is that you can not use simply https://www.facebook.com/myfacebookid. You should copy and paste the exact page URL. If you have a low number of likes it would look something like https://www.facebook.com/pages/[YourPageName]/[Your page Id]/, and this is the URL that you should use at this point.
If it does not work, try also https://www.facebook.com/[YourPageName]/[Your page Id]/.
In short, copy-paste the URL, do not type it manually.

Facebook share URL code not working

I realize Share has been deprecated by Facebook, but this is still posted on their documentation:
https://www.facebook.com/sharer.php?u=[url to share]&t=[title of content]
However, the title won't change no matter what I do -- including adding the "og:title" meta and changing the actual title of the page.
Any suggestions on how I can make it possible for people to share my page with a suggested message? thanks.
I would encourage you to use the Facebook Javascript SDK, this will give you much more flexibility with what you share.
https://developers.facebook.com/docs/reference/dialogs/feed/