facebook-like

Built-in Like Button - Facebook SDK 3.0

大憨熊 提交于 2019-12-04 12:07:43
Does anybody happen to know a good tutorial on placing the ‘I like it’ button into the application? I’m especially interested in Facebook SDK 3.0 and the so-called Built-in Like button. So far, I’ve been searching through google and stackoverflow but I haven't found anything about SDK 3.0. Publishing a built-in like is very similar to publishing a custom Open Graph action . The best resource for learning about publishing built-in likes is Facebook's reference page: https://developers.facebook.com/docs/opengraph/actions/builtin/likes/ Pavan Please see this post regarding likes and this post to

Facebook Like-Box min-width changed to 292px. Any way to change this behavior?

给你一囗甜甜゛ 提交于 2019-12-04 11:36:51
I've just noticed a change in one of my websites html layout. Everything looked messy and after searching i found out that the cause was that the Facebook Like Box (which min width seems to have changed to 292px) was insisde a 250px container. https://developers.facebook.com/docs/reference/plugins/like-box/ I've had the like-box there for years widh a width=220px and it's kind of awckard that Facebook changed this "legacy" behavior. The box had its place on my site and now i need to figure out where to put it. With my current website layout it's impossible to move the facebook like box in a

Facebook Like button showing 0 likes for ALL Facebook pages

橙三吉。 提交于 2019-12-04 11:18:45
问题 UPDATE: So this is big. If you try to link to any facebook page with a like button it doesn't work. Try going to the Facebook like creation page (http://developers.facebook.com/docs/reference/plugins/like/) and entering the URL of any facebook like page (like Stackoverflow's: http://www.facebook.com/stackoverflowpage). This code was working fine until earlier today and now I'm completely lost as to why it has stopped working. The like button loads, but you can't like it or send a message with

placement of facebook like and google + buttons inline?

痞子三分冷 提交于 2019-12-04 10:44:05
问题 Does anyone have any tricks to aligning these two buttons on a page? By default the iframe version of the facebook like button appears below the google plus button or vice versa. Are there any css tricks to keep them inline? This is my current attempt <div style="float:left;width:100px;"> <!-- Place this tag where you want the +1 button to render --> <g:plusone></g:plusone> <!-- Place this tag after the last plusone tag --> <script type="text/javascript"> (function() { var po = document

FB.Event.subscribe not firing for certain events

*爱你&永不变心* 提交于 2019-12-04 10:23:16
So I'm trying to do some event handling when a user clicks the like button. My Facebook button is being created asynchronously via: (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e); }()); And that works great. I have the following function running as well: window.fbAsyncInit = function() { FB.init({status: true, cookie: true, xfbml: true}); FB.Event.subscribe("xfbml.render", function() { console.log('xfbml.render'); FB.Event.subscribe("edge.create

Text-only version of Facebook's Like button?

自闭症网瘾萝莉.ら 提交于 2019-12-04 10:13:58
Does anybody feel the Facebook Like button is too intruding in ones UI? Like it doesn't fit in, like it's some cheap plastic thing? Have anybody ever used JS or something to make any alternatives like a plain text one? If so, has anybody ever done any A/B testing to see if it performs equally well to the original? Moreover, would this violate Facebook's TOS saying "You must not obscure or cover elements of our social plugins, such as the Like button or Like box plugin"? http://jsfiddle.net/dwaynie/HqA3H/9/ Thanks! Make text-only links for Facebook and Twitter and use CSS to do your styling.

Capturing the click event of a Like button

狂风中的少年 提交于 2019-12-04 09:08:36
I'm trying to subscribe to the Like button click. Here's the code I have: <body> <!-- Facebook Like Button with your App ID --> <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; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=349467237487892"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); FB.Event.subscribe('edge.create', function(response) { alert('You liked the URL: ' + response); } ); The Like button appears and works ok but I

Facebook Like button, can it be made read only?

。_饼干妹妹 提交于 2019-12-04 08:15:55
I'm using Facebook Likes in my site. I have a gallery page which shows picture/video data and the number of likes for that data. Each piece of data has it's own URL which can be liked. However, I want to display the number of likes in the gallery navigation, but I don't want people to be able to "like" from the navigation. Is there a way to display the number of likes without the button? The only way I've seen so far is using the link stat "table" from FQL: http://developers.facebook.com/docs/reference/fql/link_stat/ Is there an easier way because this seems like a fair amount of work to

Facebook like count resets after a 301 redirection

大城市里の小女人 提交于 2019-12-04 07:46:31
I have an article on my site that has published in a wrong category. I wanted to change the category, and since the category name is part of the url, I than added a 301 redirection to the updated url. That article had also several likes, but after the 301, it was reset to 0 likes, since to Facebook this is now as a new url with no likes. If I remove the 301 than the likes count is updated again. Is there a way to notify FB that a certain url is a result of a 301 that has likes count? I assume it is relevant as well for pages with FB comments You would need to set the "href" or "data-href"

“Like” a Page using the Facebook Graph API, Objective C

浪子不回头ぞ 提交于 2019-12-04 07:05:50
I'm trying to allow the user of my iOS app to "Like" a page using the following code: NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"access_token",[[NSUserDefaults standardUserDefaults] objectForKey:@"fb_accessToken"], nil]; [facebook requestWithGraphPath:@"PAGE_ID/likes" andParams:params andHttpMethod:@"POST" andDelegate:self]; I get the error message: Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x624d560 {error=<CFBasicHash 0x6243fb0 [0x171e400]>{type = mutable dict, count = 2,