facebook-like

facebook like button not displaying :: FB.getLoginStatus() called before calling FB.init()

情到浓时终转凉″ 提交于 2019-11-29 06:59:08
I just want a basic facebook like button on my site. I follow the instructions per facebooks site (http://developers.facebook.com/docs/reference/plugins/like/). I tried the HTML5 , XFBML , and iFrame ways, no joy on either. So I thought maybe it's something with my site interfering. So I created a bare-bones html page like below and it still gives me the FB.getLoginStatus() called before calling FB.init() error. <html> <body> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id;

Is it possible to “Like” a “fan page” using the Facebook SDK?

巧了我就是萌 提交于 2019-11-29 06:31:55
I am trying to let users "like" a Facebook fan page from within an Android app. I am able to successfully "like" objects such as wall comments using code like this, mFacebook = new Facebook(APP_ID); SessionStore.restore(mFacebook, this); mAsyncRunner = new AsyncFacebookRunner(mFacebook); Bundle parameters = new Bundle(); mAsyncRunner.request(COMMENT_ID + "/likes", parameters, "POST", new MyRequestListener(), ""); However, if I put in a page id rather than a comment id, I get this error message in the Facebook response, Response: {"error":{"type":"OAuthException","message":"(#200) App does not

AddThis buttons wont update to include fragment (#Hash Tag)

痞子三分冷 提交于 2019-11-29 05:11:20
I have these AddThis buttons on my website, and my site uses JS to take a user though an image gallery, when changing an image the URL is updated with the image title in the fragment element, the problem I have is this is not being reflected in the AddThis links. I've tried to get some answers from the AddThis forums, but was pointed at the api documentation and the addthis.toolbox() function, but it doesn't seem to be working out for me, so I thought I'd run it past the experts here. This is my AddThis code on the basic page. <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis

Display content after clicking Facebook Like button

一个人想着一个人 提交于 2019-11-29 04:02:44
问题 I have a section of a webpage that I only want people to be able to access after clicking a Facebook Like button. How do I hide that particular area and then display it only after someone clicks the Like button. As for the Facebook Like code it looks like this: <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="www.oursite.com" show_faces="false" width="330" font="verdana"></fb:like> <div id="hidden-area">Hidden Content</div> 回答1: Use 'edge.create': http:/

Changing Facebook meta tag Content Attribute using JQuery

拥有回忆 提交于 2019-11-29 03:57:20
I want to know how can I use JQuery in order to replace the content attribute of my Facebook meta tags. I searched StackOverflow and what I've found was this example: $("meta[property=og:title]").attr("content", title); $("meta[property=og:url]").attr("content", url); In my code I have the following meta tags: <meta property="og:title" content="some content"/> <meta property="og:url" content="some content"/> <meta property="og:site_name" content="some content"/> When I run the function that should change the content for the 'title' and 'url' variables, the change doesn't take place. The same

Facebook Like without Confirm?

喜欢而已 提交于 2019-11-29 02:41:15
问题 I think I have the same issue as here, but can't quite get enough out of the answers over there. I'm using a Like button (in an iframe on a Static XFBML page) to allow users to Like a YouTube video, with the intention that since the user clicks Like it shares it to their Wall. What happens is that they click Like, it says "You like this", but nothing is posted, and then after a random short interval the Like button is replaced by a Confirm hyperlink. What I really want is no "Confirm" stage

Can I get the number of Facebook Likes a page that is not on my domain received?

Deadly 提交于 2019-11-29 02:21:58
问题 Is it possible to get the number of Facebook Likes made on any url, even if I don't own that url's domain? 回答1: Yes, you can query specific URLs: https://api.facebook.com/method/fql.query?query=select%20like_count%20from%20link_stat%20where%20url=%27https://stackoverflow.com/%27&format=json 回答2: But ofcourse you can sir: Page likes If it's a page you're wanting the amount of likes of, try such a thing as this: http://graph.facebook.com/[Page name or ID here without the brackets]?fields=likes

Is there a Facebook Share button event for FB.Event.subscribe?

前提是你 提交于 2019-11-29 01:01:41
问题 I'm looking to split test clicks between the Facebook Like button and Facebook Share button. I know I can attach an event handler of FB.Event.subscribe('edge.create',...) to track clicks on the Facebook like button, but is there a corresponding event for the Facebook share button? There doesn't appear to be on in the FB.Event.subscribe documentation. 回答1: There is no event for this - if you need to be notified when a user clicks shares from within your app, you should create your own share

Facebook like button showing in Firefox but not showing in IE

空扰寡人 提交于 2019-11-28 23:18:00
问题 I have a Facebook like button on my page using the XBFML tag. I think the code is working, because it works in Firefox without a problem. But in IE 8 (running in IE 7 compliant mode), the button does not show at all. If I switch it all to the iFrame version of the like button it all works. But when I go with the XBFML tag it does not work. Anyone run into anything like this? 回答1: Try adding the xmlns attribute to the HTML document for the FB namespace: xmlns:fb="http://www.facebook.com/2008

Facebook Like Box plugin doesn't show up for logged out users; only for logged in users

浪尽此生 提交于 2019-11-28 23:17:04
I'm trying to add the Facebook Like Box social plugin in my website(I took the code from the official documentation ). It works fine but only if I'm logged into Facebook; if not it just shows Facebook Public Profile Login to see this content I don't really understand the problem because in other websites I've built everything worked just fine. I'm thinking that this might be a page setting. This is my <iframe> code for the Like Box: <iframe src="http://www.facebook.com/plugins/likebox.php?id=1331391XXXXXXXX&width=298&connections=10&stream=false&header=true" scrolling="no" frameborder="0"