Do facebook like button and a facebook comment box on the same page require differnt app ids. I have a working comment box in my website. I like to add a "facebook like button". So do neeed to create a new app id for that ?
You should only need one app id per application.
Related
Is possible to add on a website a like button where user likes a specific Facebook Page? Or this action is only possible when the user accesses my Facebook Page?
Check this out :
https://developers.facebook.com/docs/plugins/like-button
You can specify the page you want people to like, the size, everything.
You can also make a page plugin, which allow your users to like a Facebook page, see who likes it, etc :
https://developers.facebook.com/docs/plugins/page-plugin
I keep getting this message when I try to add the Like Box to my blog:
The href parameter must reference a valid Facebook page, but "http://www.facebook.com/OneBrownGirl" is not a valid Facebook page.
Since I know my page is valid, what do I do?
This is not a Facebook Page. This is your Facebook Profile.
You can create a Facebook page here: http://www.facebook.com/pages/create/
From the Facebook Like Box social plugin page: "The Like Box is a social plugin that enables Facebook Page owners to attract and gain Likes from their own website."
Like Box is for Facebook Pages. If you enter a URL value on the Like Box social plugin preview page and the URL does not render a Like Box then a WordPress plugin implementing the Like Box social plugin would be no different.
Facebook has separate profile badges which may be supported by other WordPress plugins.http://www.linkyiwu.com/
Just go to the facebook page you created, then click on setting and on the very bottom of the page you will see facebook page ID. pick the whatever iD for the page and paste where the
In Facebook docs it says:
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.
My problem is that I don't want the Facebook page to be the target of the 'like'.
So currently, the like button on my site attributes the likes to the root domain 'http://example.com/', which is what I want.
This has got many more likes than the facebook page 'http://facebook.com/examplecompage'
Is there a way to make the likes on my facebook page contribute towards the root domain likes?
That is not possible, since they are treated as 2 different objects.
And just to clarify, the documentation on the Facebook developer site is referring to the Like button that you create to be displayed on your site, not the Like button you get on Facebook automatically when you create a page.
I am developing an application on facebook. My application also has an registration page. When a new user enters into our application I want the application to show the images of all his friends who are using this app. How do I accomplish this?
The solution to this problem requires that you use a Facebook Social Plugin.
You can't build your own registration form and show a user all his/her friends who are using your application before the user installs your application. This is because, in order to get a list of the user's friends, you have to have a valid access token - as this isn't public information.
There are 2 different social plugins you can use.
The simple "login" button which looks like the Facebook login button. (documentation here: http://developers.facebook.com/docs/reference/plugins/login/)
A registration form, which uses their users' Facebook profile to pre-populate some fields. You can also add fields to the form to get more information. (documentation here: http://developers.facebook.com/docs/plugins/registration/)
Both of these show the user pictures of the friends that are already connected/installed, and this is pretty much the only way you can pull this off before the user authorizes your application.
edit 5/20/2011
After browsing around the FB Social Plugin docs, I found another Social Plugin that you could possibly use if you didn't want to use the Facebook Registration Social Plugin. You can use the Facepile Plugin. This shows all the users' friends who have connected to your app, or page, or whatever you want..so you could build your own registration form and use this social plugin to achieve the friends photos result you were looking for.
I guess I see two solutions :
Simple, put a facebook like button "with faces" somewhere on your page, your users will then see the pictures of their friends who "liked" your page.
The option for showing friends pictures is show_faces="true"
Second option, that is a bit more difficult :
When a new user registers :
Save it's Facebook ID in a DB.
Get it's friend list using something like : https://graph.facebook.com/me/friends?access_token=...
Parse the returned JSON of its friends, and then compare with all the Facebook ID's you already have in your DB, you can find which friends are already in your systems, those are the friends you want to display, to get their pictures just use <img src="http://graph.facebook.com/USER_FACEBOOK_ID/picture?type=small"></img>
See more about getting friends of a user here : read about the "friends" connection.
the best way is to use facepile you need to add data-app-id and don't add data-href because if you will add data-href then system will check that url not your app so the facepile
div will look like this:
<div class="fb-facepile" data-app-id="YOUR_APP_ID" data-max-rows="1" data-colorscheme="light" data-size="small" data-show-count="true"></div>
Is this possible?
When someone clicks a Facebook Like button, he/she shares the web page URL with friends on Facebook.
With the same click, the user also becomes a fan of the web site's Facebook fan page.
Thanks!
While adding a Like button on your website to like you "Facebook Page" is possible (and I guess you know that), you can't use the same button to like multiple entities (your current page and the Facebook Page).
What you can do is:
Have two Like buttons, one for the current page and one for the Facebook Page
Place the Like button of your Facebook Page in a "visible" location (e.g. on top of the sidebar)
Capture the like event of your current page (with edge.create)
Encourage the user to "Become a Fan on Facebook too" whenever they like your current page.
See this link on Facebook's developer site.
This will do all the points 1 and 3 you mentioned above. As far as point 2 goes, you will need to reference that on your facebook page.