like and subscribe button conflict? - facebook-like

I have a like button on my website, which has a corresponding FB page and App. The like button is functional and has been for a while. I recently decided to add a subscribe button to my webpage, so that users could get updates on our content, posted directly to their wall, if they chose to. However, although I have generated the subscribe button code directly from the FB developers page with the correct App ID, the subscribe button does not show up or function when the code is inserted into my webpage. I am not sure if this is a conflict with the pre-existing like button. I have tried all 3 variations of the subscribe button, but none of them are showing up when tested locally or on the server.
So, first, please clarify if the subscribe button would indeed allow subscribers to get updates from our FB page that they subscribe to. And if that is the case, why can I not activate it on my website?

Related

how to get a welcome message in aws lex chat bot

I am creating a chatbot using amazon lex.
There is a use case for which I have to display a welcome message like 'Hello my name is LexC. How can i help you?'
How can I implement this? This message should be displayed without user type anything, so basically without invoking any intent.
Your Lex bot cannot display a "welcome" message without any prompts from the user. You would have to implement this functionality on the client side where the bot is integrated.
Since you mention that you're using the bot inside your web/mobile app, you can implement your own code to simply show a message to the user once your chat UI loads up in the app. For Slack however, you would have to look into their docs to see if something like that can be configured.
If you are trying it to do with Facebook Page, Then you can do this by following steps:
You can create a customized greeting from your Page that will appear in Facebook messages and in the Messenger app for iPhone, iPad and Android when someone begins a conversation with your Page for the first time. Your Page's greeting will appear before any messages are sent.
To create a Messenger greeting:
Click Settings at the top of your Page.
Click Messaging in the left column.
Next to Show a Messenger greeting, click to select On.
Click Change, edit the greeting, then click Save.

Facebook like button disappears when not logged in

I have an issue with the FB like button.
In a web view inside our iOS and Android apps, when the FB like button is pressed and you are not logged in, instead of displaying a login modal as it has previously it just disappears.
This happens for the iframe and XFBML versions.
I can also reproduce this when clicking the like button in the mobile browser when viewing https://developers.facebook.com/docs/reference/plugins/like/.
I've logged this with FB Dev but thought I'd try here as well.
I had the same problem....
You have to use this tool: https://developers.facebook.com/tools/debug
Enter the url you want to add like button, this will clear facebook cache,
and the like button will work properly.
It's possible a like button is blocked if the page it links to has a restriction. This article has some more information about this problem: Ttp://www.andreavahl.com/facebook/why-your-facebook-like-box-is-not-showing-up.php

How do I merge my old like button with my new Facebook page?

I've had a like button on my site for a long time, and right now it has ~500 likes. However, this button only likes the actual link to the website and not a page on Facebook.
Today I have created a new page for my service, and even though I've found a way to make a like button for the page, I'd like to know if there was a way to transfer the likes I had on the old button (link only) to the new button (fb page) and also maybe make it so that the old "link-only" button actually links to the new page (right now the link button and page button act as if they're completely unrelated).
Unfortunately, there is no way to transfer likes from one graph object to another.
But there is something you can do:
Every like button in fact creating edge in opengraph which have a page on Facebook, so you can inform people who already likes your "old page" about existence of new one.
You can publish stream updates to the users who have liked your page just like you can with Facebook Pages. There are two ways to get to the publishing interface:
From https://developers.facebook.com/docs/opengraph/#publishing
From your Web page, click Admin Page next to the Like button. From
Facebook, click Manage Pages under the Account tab, then click Go To
Page next to your page name You can publish stories to your users the
same way you write a Facebook post from your own wall: by typing in
the Publisher, the field at the top of the screen that says "What's on
your mind?" The stories appear in the News Feed of anyone who has
clicked the Like button on your webpage.
For samples how to do same thing from code look at http://developers.facebook.com/blog/post/465

How can I trigger Facebook's Like action without using facebook like button?

I am trying to trigger the "Like" action to a url by the visitor (if they're logged into facebook) from the user clicking on a button that's on my site. I don't want to embed the facebook like button otherwise the user would have to take two separate actions (e.g. click on my button AND click on the facebook like button). Is there a way to do this?
There is no way to do this that won't get you penalized by Facebook if they find out.
This is intentional to prevent clickjacking and like-worms.
The only alternative would be creating a Facebook App, have the user give you the right to write to his wall and like and then use the Facebook API to directly like your page. However this would be many more steps than the above.
The Facebook like button features quite a few variations. The easiest way would be to pick the one among them that fits your design best and replace your button with it.

How can I store the number of facebook Likes of a particular url in my own database?

Lets say I am having 5 news articles on my website and 2 registered users. Each news article is having an FB like button. I want to insert the username and article name in my own database whenever the user likes one of the articles. How can this be done?
If it would have been a normal submit button (instead of FB like button) then i would have simply added an onclick event to call a javascript function which in turn sends an ajax request to a php file which inserts the row in the database with the required field.
Can I add an onClick event with FB like button? if not then is there an alternative?
A slightly hack-y way to go about it would be to attach an onclick event handler to the iframe container to trigger an event whenever a user clicks like on page.
I haven't worked with the API that much, but can't you use this: edge.create -- fired when the user likes something (fb:like)? http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/