How to like facebook post from my webpage - facebook

I have a webpage, and facebook page. I would like to have a "like" button that wouldn´t like the facebook page but the last post I made on the facebook page. Is this possible?
Greetings

sorry but having an external like button pointing to a single facebook content is not possible at the moment. Although there are codes in the Graph API: Publishing documentation that relate to this.
Using the said code can make users (who authorized you app) like a content, just like what you are asking for, but I've tried this before and it says that the application needs to be white-listed. I've researched more into this matter and a few more people experienced this as well.
More references:
www.insidefacebook.com/2010/10/08/causes-whitelisted-like-pages-2/
bugs.developers.facebook.net/show_bug.cgi?id=10714

Related

Facebook Like button for one facebook page of an app from it's own ios app

I am looking for Like Button to be shown in my ios native app, users of that app have already connected to app via facebook account.
there are several questions related to Facebook Like Button on stackoverflow but those are not specific to authorized single facebook page of the app.
According to official doc of facebook, facebook pages can not be liked via built-in action o open graph api.
But want only one official facebook page of that app to be liked by user when he hits like button. i don't want user to navigate away from the app or login again in web view to like facebook page.
is it possible to like app's facebook page without promoting user to log in again in webveiw?
Edit
Findings
1. https://stackoverflow.com/a/5837036/1632984
2. Comment by wallacer
"the general consensus does seem to be that you can't like a page on behalf of the user, however I just had an ios game like a page on my behalf. Extreme Road Trip successfully manages to get you to like their own page. I wish I'd paid more attention when I did it now..." – wallacer
This still can't be done directly using the graph api ( to the best of my knowledge ). What you can do is open a webview to the page you want the user to like. If you're rewarding their liking your app or something, when they close the webview (you'll have to provide a close button), you can use the graph api to check whether they like your app page. As far as I can tell this is the best current solution - and seems to be the approach taken by mobile games.
That said, I haven't used Facebook SDK 3 yet, so there may be something in there that could help you.
It appears that Liking a page on behalf of a user is still impossible. I've glanced over the iOS SDK Reference, and it doesn't seem like there is a built in mechanism to like anything.
However, in reading one of the other posts you linked to, and remembering that Facebook opened up the Like open graph action so app developers could allow their users to like content generated by their application...I found this link about built-in-actions (likes).
According to that link, you can post Like actions to your users by POSTing to https://graph.facebook.com/<user_id>/og.likes with the POST params for object (the open graph object URL you want to like on behalf of the user in this case your page's url. eg. www.facebook.com/yourpage) and access_token (obviously, for your user).
I'm not totally convinced that will work; though it is conceivable. My second thought would be to create an Open Graph Object for your page, and have all your users like that. Though, that is a little less ideal, as it removes the possibility of people finding your Page while they're on Facebook and would require you to put a lot more effort into getting likes for the Page via your website, application, etc.
I hope that helps a bit, good luck.

Is it possible to post comments from Facebook comments social plugin to fan page?

I have Facebook comments social plugin integrated into my website. I was wondering if there is any way that user comments posted on my website would show up on out fan page as well? Something like User XYZ has commented on article ABC?
Sounds like custom functionality to me.
https://developers.facebook.com/docs/reference/plugins/comments/
How do I know when someone comments on my site?
You can subscribe to the 'comment.create' and 'comment.remove' events through FB.Event.subscribe.
And that process is here:
https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/
Create an app publish an action, on behalf of the page (NOT the user). But here's the kicker: if they don't have control over the privacy of it, you probably shouldn't use their name on your page wall, at least not their full name.

Publishing Updates to Facebook Users That Like'd a Link on My Website

I am trying to figure out how to get to a spot where I can interact with those that "LIKE" a link on my website. I have seen both of these articles on Stack, but they have not helped me.
Facebook Like Button + Open Graph + Website = Pushing Updates to Likes?
No "Admin Page" link on Facebook Like button on a web page
I have a feeling that the second link above is just not up to date anymore for the new Facebook.
My site is http://www.UpcomingEvents.com.
Any help would be GREATLY appreciated!! We have some heavily LIKE'd urls and it would be great to be able to get info to those who are interested.
Thanks in advance!
Dennis
I must say, luckily this is not possible anymore. I don´t want to suddenly get stuff in my stream on facebook just because i liked one article/page on a website.
Here´s the info:
https://developers.facebook.com/docs/reference/plugins/like/migration/
With this admin page deprecated, developers will no longer have the ability to publish updates to users who have clicked on a particular Like Button. The REST endpoint to publish updates for a Like Button will also be deprecated.

Facebook fan page interaction

I've seen a lot of questions on here asking how to publish to a Facebook fan page, but not how to publish from a Facebook fan page to an external site.
I'm admin of a fan page and would like to make updates for my audience from Facebook. These updates I'd like to appear on my website as well. Does anybody know of a way to do this?
You can pull feed messages in json format like so:
http://graph.facebook.com/17227611925/feed
Substitute 17227611925 with the id of your page.
You'd have to find/write a bit of code to do this. Do you already have some sort of server-side programming environment set up?

Editing a User's Likes on Facebook

I've been looking at the Facebook API to find some way to edit a user's Likes (that is, add or remove items from https://graph.facebook.com/me/likes/). The API doesn't say anything about it specifically, but does say this:
You can publish to the Facebook graph by issuing HTTP POST requests to the appropriate connection URLs above.
Where above, one of the connection URLs is the aforementioned https://graph.facebook.com/me/likes link. However, there's no documentation for the PROFILE_ID/likes post, and whenever I try to post it returns the error "invalid post_id".
I assume this is because to like something, you post a request to POST_ID/likes. It's a bit inconsistent. What I'm trying to do is get the user's profile to add a Page to their likes (by posting using the page's id as an "id" parameter in the post body). However, it seems like there's just no way to edit user's likes.
At the end of the day, I just want to allow a user to click a button in my application (mobile device application, not a web app) and have them add our Facebook page into their list of pages, and I've found no way of doing that short of presenting our page to them and making them click on the "Like" button manually. Many other things are supported without showing the Facebook website, like posting to their wall or making albums, but I can't find anything to do this.
Any ideas?
Looks like I can't. Not in the way I want to anyway.