Redirect user to facebook post - facebook

I want to display facebook wall post (by id) on my site in facebook style, or redirect user and focus him on current post at facebook. I`m already display it using open graph with my own css, but it should be look another way. In general i am interesting in second variant with ability redirect user on facebook and show him that post.
May be anyone know how to do that?
Thanks, Anton.

I found solution, https://www.facebook.com/permalink.php?story_fbid=$POST_ID&id=$YOUR_ACCOUNT_ID

Related

How can I populate initial content to a Facebook link (if I can)?

On my website, I just added links to discuss posts on Facebook; you can see such a link at http://jonathanscorner.com/steel/ . The link redirects to https://www.facebook.com/pages/CJS-Hayward/9506801167, which lets people post but is initially empty.
I would like, if possible, to create a link that prepopulates the text of the comment to include the title and URL on my site. So someone who clicked on that link would have a posting that is prepopulated, '''I just finished "Within the Steel Orb" at http://JonathansCorner.com/steel/. '''
Is there some URL parameter I can use ('''...?text=I%20just%20finished...''') or other interface to prepopulate a comment in a JavaScript-generated link?
Thanks,
Short answer, you can't. Even with the feed dialog you can't prepopulate the comment area with some pre-defined text. What you can do is, using the feed dialog making people write their comments, and the connection of that feed redirects to your website.
The only problem is that this feed dialog would appear on the users feed an not on your page wall.
Another way, and this is the best option in my opinion, add the comments social plugin to your site, this way people would discuss that article on your page and every time they comment using this social plugin, the comments would appear on their facebook wall making their friends curious about that and maybe visit your site.
You can read more about that here: https://developers.facebook.com/docs/reference/plugins/comments/

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.

How to open a Facebook post to wall from webpage?

I am writing a website and want a user to be able to click post to Facebook and have it open a window already filled out with a custom post. I do not want to have to authenticate them with my site or anything like that just send them to a Facebook url with the post already filled in.
Twitter has something like this that I am using. For instance click this http://twitter.com/home?status=This%20is%20a%20custom%20post
Is there a way to do this same thing for Facebook? If so does anyone know the URL?
Thanks
I found the solution I was looking for. To post to a Facebook wall without actually managing tokens you must make a call to the url below with the parameters specified below.
"http://www.facebook.com/dialog/feed?app_id=YOU_APP_ID&link=A_LINK_HERE&picture=PATH_TO_A_PICTURE&name=SOME_NAME&caption=SOME_CAPTION&description=SOME_DESCRIPTION&message=MESSAGE_TO_POST_ON_WALL&redirect_uri=REDIRECT_URL_AFTER_POST"
This will redirect back to the url that was specified in redirect parameter after the post. It will have the parameter post_id with the id of the new post or no params if they did not post. You can find documentation here http://developers.facebook.com/docs/reference/dialogs/feed/.
The Like and Send buttons provide this functionality:
http://developers.facebook.com/docs/reference/plugins/like/
You include meta tags on your page and the Like / Send button pick this up for sharing to a user's wall.
You can't prefill story text, it's against FB policies. Twitter is cool with that, but on Facebook it's a no-no.
See: http://developers.facebook.com/docs/guides/policy/examples_and_explanations/stream_stories/
Scroll down a bit to 'Platform Policy IV.2'
You can put suggestions of what to say on the screen, but you can't prefill the comment box.

Having a issue with the "Share" feature Facebook Fan page

My friend has created about 20 Facebook fan page for the website. www.AvailDiscounts.com
Now the issue is, when we click on the wall post to "share" with other friends, its taking to another page where it displays the meta tags and the title of the login page instead of displaying the exact post.
Please find the fan page of the website:
http://www.facebook.com/pages/Avail-Discounts-Chicago/195486540483072
How to over come this issue.
The Query can be found in the following link with images:
http://getsatisfaction.com/rssgraffiti/topics/issue_with_share_button_when_using_rss_graffiti
Please help
As far as i have checked this seems to be an issue with the RSS Graffiti application in Facebook.
You have two issues here:
1) Are you posting the correct link in RSS Graffiti?
It seems all of your fan page links redirect me to the Avail-Discounts-Chicago home page. It's either it is non-existent, deal closed or bad URL supplied.
2) RSS Graffiti posts differently than Share button
RSS Graffiti prepares your data, image link title and description before posting to the page stream. The default Facebook Share button does not. What it does is get the URL, scrape that URL with information, which can be defined through opengraph tags. Make sure your links / deals have their meta:og's.
Your question is a bit vague, and the passing of the auth information is kind of scary, but anyway, I'd make the href of the post something along the lines of this:
http://www.facebook.com/dialog/feed?app_id=123050457758183&link=http://developers.facebook.com/docs/reference/dialogs/&picture=http://fbrell.com/f8.jpg&name=Facebook%20Dialogs&caption=Reference%20Documentation&description=Dialogs%20provide%20a%20simple,%20consistent%20interface%20for%20applications%20to%20interact%20with%20users.&message=Facebook%20Dialogs%20are%20so%20easy!&redirect_uri=http://www.example.com/response
More information is available here:
http://developers.facebook.com/docs/reference/dialogs/feed/

Liking a Specific Facebook Post

I'm trying to embed the Facebook Like button on a web site. The URL of the item I am trying to allow the user to "like" is an individual Facebook post on a Page's wall.
I'm using a simple FBML implementation of the Like button like so:
<fb:like href="http://www.facebook.com/[PAGENAME]?v=wall&story_fbid=[ID OF THE POST]" layout="button_count"></fb:like>
The like button works, but when it is clicked, the user is actually liking the PAGE, not the individual post.
Any help would be much appreciated. I've tried various formats for the URL, but so far have not been able to make it work.
Thanks!
What you are trying to do is not possible. You can only 'like' things that have a unique page to display them. The url you have ?v=wall&story_fbid=[ID OF THE POST] is just a 'helper' url for facebook. It takes you to the http://www.facebook.com/[PAGENAME] url and Facebook will treat this url the same as the page.
It is a bit confusing because you could do something like you are talking about off of facebook, but the like inside of Facebook isn't really the same as what the like button's are doing. The like buttons are using the Open Graph protocol. Content on facebook.com doesn't play by the same rules.
In short, likes for "facebook generated" content inside of facebook can only be liked inside of facebook.
Check out this article for more information on some of the things you can do with the like button inside facebook: http://developers.facebook.com/blog/post/407
Very late answer, but the Graph API might help. You might be able to grab a post and like it - https://developers.facebook.com/docs/reference/api/post/