I am developing a Facebook page for fans only. When a user lands on my page I am able to determine if it is a fan or not and display content appropriately. In the last few days I have noticed that non fans that land on my page and click on the native tab like button the page doesn't refresh to display the fan content.
What do I do about it? I haven't changed anything on my code to cause this. It just stopped working.
I didn't encounter such problems, but if you need a solution, try to subscribe to the edge.create event: https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/
This way, you will be able to detect if someone clicks a like button and, if the like button for your page is clicked, you can redirect the users back on your tab, like a sort of refresh
Sounds like it might be a Facebook bug, nothing in your code should have any affect on the native like button.
Try submitting the bug at http://bugs.developers.facebook.net/
Related
I'm trying to use the Facebook Like Button Configurator to generate the Like button for a facebook page URL but it's not showing up:
Here are the steps I performed:
Goto https://developers.facebook.com/docs/plugins/like-button#configurator
Type in 'https://www.facebook.com/LoveJadot/' in the 'URL to Like' textfield and hit tab to move to the next field.
The Like button does not appear below.
It does, however, work for all other facebook pages. Our client wants to know if this is a facebook issue and if so, what's the solution?
Any help would be greatly appreciated!
Facebook is making a few changes when it comes to promoting alcohol. Many groups and campaigns are being affected by this change.
Unfortunately we can't say for now what Facebook will end up doing. And there is no way around it at the moment(at least they did not communicate one yet).
Please help.
I want to add a facebook like button for my facebook page on my website, but I cannot do it because the fb like button does not show up.
When I go to the like button configurator https://developers.facebook.com/docs/plugins/like-button#configurator , and enter the url of my fb page in the 'URL to like', the like button does not show up. Even if I copy & paste the code generated from the like button configurator to my website, the like button does not show up on my website.
But if I enter a different facebook page in the 'URL to like', the like button shows up and everything works as expected.
I noticed this issue about 10 days ago.
Before that, there were no issues and the like button for my fb page was visible on my website and also in the like button configurator https://developers.facebook.com/docs/plugins/like-button#configurator.
I contacted facebook about this issue many time but they don't answer.
Why is my like button not visible anymore?
We had the same issue today. We recognized that the og:url didn´t match the data-href of the like button and so the button wasn´t shown at all (even though it was rendered) - This is also mentioned in the official documentation.
Maybe this helps someone else.
I'm currently investigating the capabilities of Facebook API, like/share/comment of public posts from a public pages, for a client. I also noticed this problem. I think that this is related to a fact that Facebook removed the option to like page posts without the page access token that must be granted to your app by a page owner. If you try to do it from the Facebook API you will get the following error:
"(#3) Publishing comments through the API is only available for page access tokens"
I was able to get like button for my page itself, but as soon as I enter the url to some of the page's posts, the button disappears. You shouldn't suppose to have problem with the share button, but if you try to use an integrated version of like+share button, if the like doesn't work, you will lose the share button too.
Here is (only) the share button Configurator:
https://developers.facebook.com/docs/plugins/share-button
On the new style Page Tabs, the Like button no longer re-freshes the page. This breaks the existing workflow for "Like-gates", where the signed request is checked on the server. Like the page, page refreshes, boom - the tab now updates to the "Liked" state.
Will there be any kind of event fired when user clicks thew new Like button? Or is this kind of gating no longer possible?
it's a bug that the page is not refreshing after being liked. Here's the bug reported:
https://developers.facebook.com/bugs/228778937218386?browse=search_4f500194bc1bd0293819428
However, I managed to do a workaround to detect if the page is still not using timeline by looking for an album called "Cover Photos" on the album list of that page. Here's a sample:
http://graph.facebook.com/-page_id-/albums?fields=name
You don't need a token unless the page isn't published yet.
The problem with this approach is that some pages still don't have cover picture yet, but it's the minority.
This problem is now fixed by Facebook. See here:
http://developers.facebook.com/bugs/228778937218386
So everyone can relax.
Up to now, the tab app automatically gets reloaded when user clicks "like". In new timeline fan pages it doesn't. How to catch that event?
Note that JavaScript SDK edge.create is working just for custom like buttons - not when users clicks default like button.
I think you can't, but don't worry, it's a bug that the page is not refreshing after being liked. Here's the bug reported:
https://developers.facebook.com/bugs/228778937218386?browse=search_4f500194bc1bd0293819428
However, I managed to do a workaround to detect if the page is still not using timeline by looking for an album called "Cover Photos" on the album list of that page. Here's a sample:
http://graph.facebook.com/-page_id-/albums?fields=name
You don't need a token unless the page isn't published yet.
The problem with this approach is that some pages still don't have cover picture yet, but it's the minority.
I have created an app that will be used as a tab on my company facebook fan page. I have a new requirement to capture when the user clicks the like button on the facebook fan page and hide a portion of the app page (within the iframe) when the event fires. Although the like button is on facebook's page, is there a way to capture the click event of the like button (ie: javascript sdk) within my app iframe so I can hide appropriate elements?
Like this .... http://www.facebook.com/redbull
Thanks for any and all advice,
B
I found the answer...
How to detect Facebook Like button pressed and trigger event?
I checked the incoming request for fb_sig_is_fan.
I am afraid that this is not possible. Also it makes no sense! because Facebook will reload the page once you click on the like button!