Notify user who liked my website - facebook

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.

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/

Does the website and page where the like button is pointing to have to have the same App ID?

I have a quick question. I have a website, with a design that responds to when a user clicks on the like button. So, I use the edge.subscribe method to list in on when the button is clicked.
To do this, I had to create a Facebook app, with its own Facebook app id and embed the like button using the Javascript API. The problem is, the like button is pointing to the Facebook page - and not the website (the website has 0 likes, the Facebook page has 200k likes).
The question is, my like button doesn't show up unless I'm logged in to Facebook - which seems to be an issue I had previously resolved with another website by having the page I'm liking, and the page I'm clicking the like button share the same App ID.
Can I still have the Facebook like button show up even though It's not technically pointing to a page within my app? Does my page in Facebook need to be an app?

Force User To Like FB Page Before Visiting My Website

As part of a website that I am developing, I have a Like Gate Page that I want to use in order to force my site visitors to press the like button before they are redirected to the site homepage.
When a Liker visitor comes back for the LIKE Gate page he/she should be redirected automatically to the website homepage (he/she already pressed like).
Important:
The whole website including the Like Gate is not found in a Facebook App/Page Tab!
It is OK to ask the user to login before he/she can press the Like button.
Well, in your web page you could implement Facebook login and get user's permission to see his/her likes. Get said likes from Graph API, see if your page is in the list and depending on that, either show your web page, or redirect user to your facebook page. You will need user_likes permission for that.
By using Facebook Javascript SDK Methods FB.Event.subscribe, FB.getLoginStatus, FB.api, authResponse, pages.isFan, access.token and Javascript SDK and a little bit PHP SDK.
I saw one, almost perfect that can be site-integrated, fully-explained, and free in this blog: http://daneworx.blogspot.com/2014/02/how-to-force-users-to-like-your-page.html

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 for redirecting site

I have special offerings gallery site (lets say example.com) and each offering has a "Like" button. "Like" button has example.com/45 url which directs original offering site (lets say superoffer.com). The problem is that my like button shows superoffer.com "likes" and not my redirect url likes. How can i pass this problem.
You can't. Facebook does not allow you to create likes for pages that do redirects. You should make example.com/45 a landing page that links the user to the destination page. This way Facebook will send the user to your site, then the user can click a link to go to the next site.