I need a facebook share/like button on my page, that posts my page with picture, title, description etc. into the news feed. I've created one with the Facebook "Like-generator" and bring it succesful on my page, but when I click on "like" my page is not in the news feed, only on my wall.
As a second step I want to activate a form when the user shares the page on facebook. Is it possible to do that? FB.Event.subscribe?
I need a direct share (one-click share) of the page - without click a second time share on: http://www.facebook.com/sharer.php?s=
I found an example of this button I need
http://www.thomashutter.com/index.php/2009/07/facebook-die-10-facebook-seo-tipps-die-jeder-facebook-seitenbetreiber-wissen-sollte/
On this site there is a button called "Empfehlen", when you click on this button, the page will be post on your wall and it will be displayed in the news feed.
Like button clicks will post on the users wall 100% of the time; however, facebook uses an algorithm to determine the relevance of the link and that determines the probability of that post appearing on the users news feed. So in other words, not everything you post on your wall will appear on your news feed. This is new, before, everything wall post appeared on the news feed but facebook is now selling space on the news feed to commercial page wall posts so that limits the space for regular pages
Facebook has rather extensive documentation on how to make like buttons, including a code generator.
First, you have to add a facebook like button on your page. And then you have to set up the open graph meta tags in the <head> of your page. These tags allow you to describe the page with a title, a description and an image which will be displayed in the news feed.
These two steps are described here : http://developers.facebook.com/docs/reference/plugins/like/
Related
I have a "single page" website. Let's call it "mySite.com/index.html".
There are several different places on my page that I would like users to share via Facebook. Each of these items should display a different image and headline text, when shared on the user's Facebook timeline.
Each of these item posts should link Facebook users back to my website, "mySite.com/index.html", when the posts are viewed from a Facebook timeline.
Example:
On my page, I wish to have two different share buttons:
A. ButtonA: This button would create a picture of an elephant on the user's Facebook timeline, with the headline, "A Beautiful Elephant!". This post on the user's timeline should link back to my page, when the post is clicked.
A. ButtonB: This button would create a picture of a tiger on the user's Facebook timeline, with the headline, "A Scary Tiger!". This post on the user's timeline should link back to my page, when the post is clicked.
The Problem:
My understanding is that in order to create Facebook timeline posts which contain attractive headline text and images, I must use Facebook OpenGraph Meta tags, on the same page that is being linked to. It seems impossible to have two different sets of Facebook meta tags on "mySite.com/index.html", one outlining the 'elephant' post, and the other outlining the 'tiger' post.
The only possible solution I can think of is this:
Create a special 'Facebook Meta HTML Page' for each post I want to make. Each 'special page would only contain the meta tags for the post I wish to outline. "mySite.com/elephant_meta.html"
The body of the special page would be blank. This will work, but there is a problem: The resulting Facebook post will link users to "mySite.com/elephant_meta.html", which is just a blank page. I wish them to be directed to "mySite.com/index.html".
Solution: Create a JavaScript redirect in the body of "mySite.com/elephant_meta.html". This redirect will take users to "mySite.com/index.html".
This will work, but it feels incredibly hacky. Is there a better way?
Still finding my way on the open graph stuff as well, but the way I understand it, you can set og:url to the url that you want users to go to when they click on the link in your story on facebook. So each of your meta pages could point back to your main site page using the og:url meta tag.
I am trying to link a like box on website to facebook fan page.
http://witheri.com
I created an APP (developer.facebook.com), went to settings -> advanced -> add page to create a fan page for a band. Then I used this open graph like button (http://developers.facebook.com/docs/reference/plugins/like/) to link page.
It is working on website, but when I click like, it creates a 3rd page, an insight page, with this message "This is the administration interface for your webpage at http://witheri.com. You can see Insights and publish to the users that have liked your webpage. Only the administrators of the webpage can view this interface, other users are sent to the webpage."
This is all fine, but I want the likes to appear on the fan page instead of the insight page. How can I fix this?
That message explains the situation; the people who use the Like button are liking http://witheri.com , the page you see on Facebook.com is only visible to you, and lets you see the insights for who likes the page, and lets you post things which will appear in the fans' news feeds
I have a Facebook feed that takes me to a landing page when I click on it. I want to be able to add Facebook's like plugin onto that landing page in order to like the feed I came from. This would be the equivalent of clicking like from the feed post itself. I don't know what to use for the data-href property in order to connect the like button to the feed.
I know the feed id and access_token and have tried the following:
https://graph.facebook.com/1608072154_362229823788663&access_token=...
http://www.facebook.com/1608072154/posts/362229823788663
So far I've only been able to like link urls and not the actual feed post.
Is what I'm trying to do even possible? and if so, how do I get the url?
Is what I'm trying to do even possible?
Yes it is possible, but not with the like plugin. I have a production app that pulls in a person's feed from multiple social networks including Facebook. I display a gray star for unliked content and a gold star for liked items. When the user clicks the gray star for a facebook item, I send an HTTP Post to the Graph API with /post_id/likes which likes it. If they click the gold star, then I send an HTTP DELETE to the /post_id/likes which removes it. See: https://developers.facebook.com/docs/reference/api/post/ and the "likes" create/delete section near the bottom.
For example, I have an article in my site,
http://abc.com/1.html
and I put a like button plugin from Facebook in the website for this article (http://developers.facebook.com/docs/reference/plugins/like)
And I also have a fan page in Facebook and share this article (by sharing a link).
If I press the link button in my site, the fan page like for this article does not add up. And vice versa, if I click the like button of this article in fan page, it does not reflect on the website either.
So is it the default behavior? I thought the article URL is provided for the Facebook Like plugin, the info should be linked. Anything I am missing here?
Thanks.
When you put an Like Button on your website for this particular article,
it's usually linked to an "Open Graph FaceBook Page", not your regular Facebook Fan Page, with a wall page. Open Graph FaceBook Page will redirect users to your own website. The good part of it, is that you'll be able to post news in the fans news feed.
When you share that article on your Fan Page, fans would LIKE the news feed post, not your website's article.
You can link the like buttons to your Fan Page, but you'll loose specific article liking capabilities.
As described in the doc (http://developers.facebook.com/docs/reference/plugins/like) :
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.
The first like is for your site, the second like is for the feed story -- they are two distinct objects.
Is it possible to add a Facebook Wall post text box to a Facebook landing page that will - and here is the real catch - allow a visitor to leave a comment and fan a page at the same time? Basically, in a very transparent way so that the visitor knows what they are doing, we would like to build a landing page that will allow a visitor that is already familiar with our brand, to - with one click - produce a Wall post AND fan our Facebook Page at the same time. So basically, we'll say, "Please become a fan of our page, and while you're at it, why don't you say something?" and then:
The user will fill out the text box on the landing page
The user will click the "Like" button on the landing page
Then - more or less simultaneously - the user will become a fan of our Page and the text in the box that they wrote will turn into a post on our Wall.
So, first, is that possible, and second, if so, does anyone have an example of the code that would make this work.
Thanks!
You could use a feed dialogue to post on user's wall:
http://developers.facebook.com/docs/reference/dialogs/feed/
Additionally posting on user's wall automatically is a facebook policy violation. You should tell the user explicitly that you are posting on the wall and there should be a button clearly indicating that, and another to cancel the action. Facebook auto-bots are going berserk these days, and banning applications like anything. So it's better that you are careful. The policy documents can be found here:
http://developers.facebook.com/policy/
http://developers.facebook.com/policy/