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/
Related
I have a website that have a like button with url pointing to the website's url. The like button works, but I can't seems to figure out how to send notification to users who like the button. I understand that the admin button for a like button is no longer possible and the migration window is already closed. I should change the URL to a facebook page. But if I change it to a facebook page, then when the user share the link, they will open the facebook page, not my website. So how do I make it possible for the user to share my website, but still be able to notify them of any news.
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.
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.
I want to create an iFrame Tab App for Facebook. I am planning on having a share button, so the user can share the tab app. If the user has successfully shared the tab app (= left a post on his wall which is defined by the app) I want to redirect him to let's say www.example.com/user-has-shared.
The way I understand this (http://developers.facebook.com/docs/reference/dialogs/feed/), this should be possible using the redirect_uri parameter.
However, when the user opens the dialog and doesn't click on "publish" but on "skip" instead, he is still redirected to the same page as defined. But I don't want to redirect users who have skipped publishing.
Any ideas? Thanks!
Using PHP by the way.
I'm not convinced that what you're asking for is possible, and it definitely isn't nice so that's fortunate. From the docs, redirect_uri redirects after any button in the dialog is clicked. Again, this is good.
You shouldn't be doing anything that requires the user post on their wall. While user advertising is nice, making it mandatory is frustrating and many of your users would be frustrated. A better method would be to build an app that people WANT to talk about! ;)
EDIT: Ignore my puffery there, this is totally possible. You check for $_REQUEST[post_id] on the redirect_uri'd page. More details in the comments.
I have a Website, when user click on ( Follow us on Facebook ) button it should link to my Facebook wall page, example ( http://www.facebook.com/totallydriven )
I have added Username as totallydriven in My Account page,
But when my user clicks on ( follow us on facebook ) button, facebook is asking to log-in to view my wall.
What is the setting I should change.
Some example facebook profile.
Even though you are not log-in to your facebook, you can view their wall.
http://www.facebook.com/HuffingtonPost
http://www.facebook.com/easportsfifa
Try following steps:
Log into your facebook account and go to the page.
Click Edit Page. You will be taken to the Manage Permissions page. Make sure, for Country Restrictions, you have no countries listed. Listing a country here causes non-logged in visitors to be asked to login, rather than seeing your page as you desire.
Remove the countries and click Save Changes at the bottom.
I just figured this out for a page I manage which was doing the exact same thing.
You can control which data you want everyone to use on facebook's Privacy Settings configuration page. Posts by me and Comments on Posts are the two most important settings to allow a public Wall.
There is a preview button to see what everyone sees as well.
It looks like http://www.facebook.com/totallydriven is a Facebook user (hence the button to add as a friend). The others you mentioned http://www.facebook.com/HuffingtonPost and http://www.facebook.com/easportsfifa are Facebook Fan Pages.
Go here http://www.facebook.com/pages/create.php to create a Facebook page that users can "Like" and follow as you have described.
Facebook requires a certain number of LIKES before you are provided a customized facebook URL.
http://www.facebook.com/YOURBIZPAGE