facebook-likebox

Like button - XFBML or Iframe

女生的网名这么多〃 提交于 2019-12-11 10:33:20
问题 I'm about to incorporate Like buttons into my web site - it'll be the first time I've incorporated Facebook fubctionality - and would like some guidance on whether to use the XFBML option or the Iframe option. It seems as though XFBML offers more flexibilty for the future, but a) are there any disadvantages to this approach, and b) is the HTML5 compliant version better still? Thanks. 回答1: If you want it quick and non-intrusive code in your website use IFrame, but the SEO could be affected. If

How to track social likes count

巧了我就是萌 提交于 2019-12-11 05:45:23
问题 I have the following design of social likes: Whenever a user hovers over normal social like icon the real social like button appears. When the user clicks on the like, I want the new count be displayed on my normal view. What is the easiest and fastest approach to do so? I need to implement this for several social networks, not only for facebook. 回答1: You need to build it on your own. Some sites do this to provide sending data to facebook/twitter/etc due to social plugin includes on its

iOS Facebook Like Button Not Working With iOS App

白昼怎懂夜的黑 提交于 2019-12-10 11:34:10
问题 Trying to add the Facebook Like Button to an iOS App. Followed the directions online and am seeing an issue. Without the Facebook App Installed on Simulator (8.x, 7,x): When pressing the F Like button, we see a transition to Facebook.com but then quickly returns to the iOS App. It does not go to the proper Facebook Like page where the user can like the URL passed. In the iOS app, the openURL method is being called and the Facebook wasHandled = [FBAppCall handleOpenURL: url sourceApplication:

Facebook edge.create event not firing on like box

▼魔方 西西 提交于 2019-12-09 12:42:43
问题 I had a page with a simple Facebook like button and I needed to know when the user liked the page so I used the edge.create event to do this which all worked fine. I now need to add a like Box plugin to the page to like the client's facebook page and again I need to be notified when someone clicks the like button. However, the subscribe event never fires. Any idea what might be the problem? I am using the xfbml code to add the like box. 回答1: It appears to be a bug. Here's a link to official

how to auto share link to facebook

你说的曾经没有我的故事 提交于 2019-12-08 13:57:50
问题 I have a link http://news.bamlike.com/index.php. When i click on link to view article. if you has loged in facebook and accecpt with some permission in this apps. It'll auto share that link on facebook timeline (Activity Recent) .It's like you're just click like it. demo image: http://tapchidesign.hostoi.com/help2.jpg How can i do it ? Thanks you very much ! 回答1: On each page load, check if the logged in user has authenticated your app. If they have, publish an open graph built-in "read"

iOS Facebook Like Button Not Working With iOS App

牧云@^-^@ 提交于 2019-12-06 08:50:27
Trying to add the Facebook Like Button to an iOS App. Followed the directions online and am seeing an issue. Without the Facebook App Installed on Simulator (8.x, 7,x): When pressing the F Like button, we see a transition to Facebook.com but then quickly returns to the iOS App. It does not go to the proper Facebook Like page where the user can like the URL passed. In the iOS app, the openURL method is being called and the Facebook wasHandled = [FBAppCall handleOpenURL: url sourceApplication: sourceApplication]; is being called and it returns YES. Please note that we are also using the Facebook

How to solve HTML5 validation error on fb-like box?

拥有回忆 提交于 2019-12-06 06:53:40
问题 How to solve this HTML 5 validation error related to Facebook like button? Here is the text from validation engine: Line 3170, column 261: Element name fb:like-box cannot be represented as XML 1.0. …rue" border_color="" stream="false" header="false" height="260" ></fb:like-box> Here is the code on Line 3170: <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/fburlhere" width="250" show_faces="true" border

Alert says using deprecated HREF without absolute URL

自古美人都是妖i 提交于 2019-12-04 16:39:48
问题 Message alert in Facebook developer page that my site is currently using the following deprecated features: Social Plugins (Like Button, Like Box) without absolute URL's in their href parameter. This must be fixed before July 2013. I'm guessing it's talking about the data-href parameter for likes, but my like buttons are being generated with the following simple code: data-href="http://<?php echo $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];?>" And the results when viewed in the browser

How to solve HTML5 validation error on fb-like box?

Deadly 提交于 2019-12-04 11:47:10
How to solve this HTML 5 validation error related to Facebook like button? Here is the text from validation engine: Line 3170, column 261: Element name fb:like-box cannot be represented as XML 1.0. …rue" border_color="" stream="false" header="false" height="260" ></fb:like-box> Here is the code on Line 3170: <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/fburlhere" width="250" show_faces="true" border_color="" stream="false" header="false" height="260" ></fb:like-box> Just after this error, there is

Facebook like box widget not recognizing data-width attribute?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 23:53:42
I just noticed today that the data-width attribute for the Facebook Like Box widget does not appear to be working. It looks like it is reverting to the default width. An example of what I'm talking about can be seen on http://blog.christopherjonesart.com . Here is the code I'm using (it's pretty standard): <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"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script',