How to add custom button on facebook comments - facebook

I would like to know about the feasiblity of customizing facebook comments as follows:
Is possible to create a custom button near to Comment box? eg: Create a new button called "Create" near to "Like", "Replay" and "Share"
This button must be visible to facebook page admin in each and every comments.
We would like to call a web services if the facebook page admin click the "Create" botton.
Kindly let me know about several possible methods to acheive this.
Best Regards,
Sujan

No, it isn't possible. You can't change the behavior of FB widget, but you can write own comment system with login via FB.

No if this is a standard comment from your users. When users post from inside your app to their wall (e.g. requesting friends to join them in the app) there can be an extra button (e.g. Enter App).
The main option you would have is to create your own commenting system which links to your facebook users accounts.

Related

Share on Facebook asynchronously

I know it is possible to share a content on Facebook using a URL format like this:
https://www.facebook.com/dialog/feed?%20app_id=145634995501895%20&display=popup&caption=An%20example%20caption%20&link=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fdialogs%2F%20&redirect_uri=https://developers.facebook.com/tools/explorer
But this opens a dialog and prompts user to share, so user need to click on "Share" button. Assuming user is already logged in with facebook (let's say on another tab of the browser) I need to enable the users to share content asynchronously without clicking that "Share" button on the facebook share dialog.
I can't figure out a way.
Users do not need to click the "Share" button on that dialog. In this way, as soon as a users clicks on a "Share This" button placed ON MY SITE, the content will be posted on users's fb wall.
Is that possible?
It is possible, but only with Facebook Authorization:
https://developers.facebook.com/docs/facebook-login/
The user has to authorize your app with the "publish_actions" permission, and you can post stuff on his wall with the PHP SDK:
https://github.com/facebook/facebook-php-sdk
Just keep in mind that the message always has to be 100% user generated. So, in order to share something like this, you would need to share without the "message" parameter, or you would have to include an input field where the user could set his own message.
Btw, for the functionality you described, there is a much better solution:
https://developers.facebook.com/docs/plugins/like-button/

Get FB User when authenticating to Facebook via Send Button

I've done quite a search on SO and this doesn't seem possible. But I'll ask the question, just in-case someone does know if this is possible.
With the standard like/send buttons. If an unauthenticated FB user clicks send and via the FB dialog window then authenticates. Is there a way of finding out the FB id of this user?
Edit: To clarify, this question is not about clicking the like button. I know you can't get any information from clicking it. This is about clicking the send button and then post auth with FB.
This is not possible, as already seen in
How to know who clicked the Facebook "Like" button on my site?
How can I get user's facebook ID who clicked like button?
You can only track users that allowed an app made by you to access their information.

Facebook Like Button On My Website To Like A Facebook Page, Not My Website

I have a Facebook like button on my website, however as it works currently it only lets users like the page that they are currently on. Is it possible to make the button like our Facebook page instead of our website?
Go to the developers page which provides Social Plugin. There, just add at the "URL to Like" of the button, the address of your facebook page. E.g. http://www.facebook.com/mypage
This way, once the users push the like button, your facebook page will get automatically a like and they will also follow the updates of the facebook page
You can use the badge creator to create a badge for your page that a user can interact with for "like" purposes.
you could try this page this might work better for you, they can like the facebook page direct on your site http://developers.facebook.com/docs/reference/plugins/like-box/
This is because you haven't put your right page url in facebook like box generator. Go to you facebook page and copy the link from there. Now use this to generate facebook like box. You can also get help from this http://www.codematrics.com/my-website-and-facebook-page-have-different-likes/

Facebook page apps - Authorizing a user

I can't seem to find exactly what I'm looking for. We're trying to build an app to run solely on a Facebook Page. We want to show a landing page if they don't Like the page, and the contest entry form if they do. This functionality works.
Before showing the contest entry form, we'd like to authenticate the user viewing the app so that they can just hit "Enter the contest!" and we can automatically pull a name/email address.
Any of the methods of authentication I've seen described, including through the Facebook Developer docs, don't work at all.
I saw something that said they need to interact with the app first, then you can get the id, but that doesn't work either. I also don't get the page id passed with the signed request.
Its also pretty unclear whether I should be using an iframe or just FBML.
Could anyone point me in the right direction, please? Thanks!
You need to create a fan page and add the FBML plugin to that page, then you will need to insert a short code that will determine if a facebook user has clicked 'Like' or not and by determining that you will decide weather to display the content of the landing page or not (using an iframe). You will probably like to also set the FBML box that you create as the default view for members who didn't press the 'Like' button yet, you can change the default view in your fan page settings.
On the iframe, you will need to use the Facebook API if you want to retrieve any user information from Facebook, for that, you will need to register a new application with Facebook. Go to developers.facebook.com for the API integration and app registration.
Also, what do you mean when you say:
Any of the methods of authentication
I've seen described, including through
the Facebook Developer docs, don't
work at all.
Well, it appears you can't do it that way. The client was very specific in wanting that functionality but we ended up convincing them to go for a redirect to the canvas page to have the app authorized and the contest entered instead.

Facebook API: create event using Facebook's form

I've done my searching for the answer to this but it remains unclear. This could be a simple "possible" or "not possible" answer.
I have a site I'm creating that uses Facebook Connect (may or may not be relevant). I would like users to be able to create Facebook events based on events posted on this site. I'm familiar with the Facebook API and realize I could make my own form that would allows users to create a Facebook event... but I don't really think I want to do that work.
Is there a way I can point a user to Facebook's "create event" form but simply pre-populate some of the fields to help them along?
For example, say I wrote post about a free concert and had a button that said "make this an event on Facebook!". I would like that to link back to the fB event form with a title "Reggae Night 2010" and then from there the user could go on and create the event as they normally would. I don't see the point in doing my own form, validation, etc.
Thanks!
Firstly, obviously have a FB login enabled page and/or when the click your site's "click here to create event in Facebook" button, then have it check for whether the user is already logged into FB. Then use javascript to prepopulate the fields on the form on this page...
http://www.facebook.com/events/create.php
...with the info from your site's event.
That should be it!
-Flak
EDIT: spankmaster79 - yes, that's what I said above.... have your code CHECK for WHETHER you're ALREADY LOGGED INTO FB first. (Please remove the -1, I'd appreciate it)