xfbml

Multiple facebook comment boxes on a single page?

[亡魂溺海] 提交于 2019-12-18 12:35:10
问题 I have three products listed on a single page and I'm looking to add a small comment box to the side of each of the products, kind of like : https://www.facebook.com/SanukFootwear?ref=ts&sk=app_113298085356151. The main problem is, I can't seem to figure out how to add more than one comment box to the page. I tried using HTML5 and XFBML. The code I'm using now is : <html xmlns:fb="http://ogp.me/ns/fb#"> <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d

xfbml like button hide the possibility to add a comment to the like

回眸只為那壹抹淺笑 提交于 2019-12-11 17:32:27
问题 I added a like button in a facebook application (not iframe in order to capture the liked evenment...), and when a user click on like, then he has the possibility to add a comment to the like. I want to hide/remove this possibility to adda comment when he click on like. Do you know if it's possible and how to do that? Thanks 回答1: Set a fixed height and overflow hidden on the div that contains your like button so that it is hidden after the user clicks 'like'. 回答2: I added these CSS classes to

Is fb:multi-friend-selector deprecated?

浪尽此生 提交于 2019-12-11 15:36:09
问题 I have a page in my website to invite Facebook friends to use my website and the code is pretty standard stuff <fb:serverFbml style="width: 755px;"> <script type="text/fbml"> <fb:fbml> <fb:request-form .... <fb:req-choice /> > </fb:request-form> <fb:multi-friend-selector .../> </fb:fbml> </script> </fb:serverFbml> As far as what I understand, because I am including FB JS SDK, it interprets the XFBML tags and includes the appropriate html for the same (which is interpreted by the browser). I

Check if user machine can access Facebook

♀尐吖头ヾ 提交于 2019-12-11 12:25:24
问题 Facebook is banned in our country. However there are still a considerable amount of users who can work around to use Facebook. Of course, many others can't. My site uses Facebook like button and like box. If the user machine cannot access Facebook, there will be some "ugly" parts on the page, where there should be Facebook plugin. Does anyone know how to resolve this issue? I mean how to check if the user machine can access Facebook? Any trick is appreciated. 回答1: You could load a hidden

New xfbml “Like” button + CloudFlare 503 error kills count?

元气小坏坏 提交于 2019-12-11 01:03:09
问题 Recently switched to XFBML to make our page more efficient. However, we noticed that when we started using fb:like vs. the old iframe new Facebook Likes are no longer recording! Wanted to get some insight on this. The Facebook debugger is not returning error codes so we're in the dark about what's causing this! Code reference, everything checks out though: <fb:like href="http://www.example.com/" send="false" layout="button_count" show_faces="false" width="90" font="arial" action="like"></fb

Adding CSS to Facebook Like Box

梦想与她 提交于 2019-12-10 20:12:59
问题 I'm trying to add css styling to Facebook Like Box XFBML file but it doesn't take the stylesheet the regular way – its own stylesheet comes after yours. So I did some search and found posts that said to add css="youstylesheetlink.css" to the fb:like-box like this: <fb:like-box href="https://www.facebook.com/example" width="496" height="120" show_faces="true" border_color="" stream="false" header="false" css="http://example.com/css/style.css?2"></fb:like-box> But no matter what I try it doesn

Getting a Visitor's Facebook Info Without “App Permission” — How Does Yelp Do It?

纵然是瞬间 提交于 2019-12-07 17:36:56
问题 Okay. I've spent hours poring over the scattered FB documentation concerning xFBML, Open Graph, etc. -- most of it deprecated it seems. Anyways, I'm trying to get a visitor's Facebook userid (or name or pic or anything) when they visit my site (assuming they are logged into FB already) without them having to "connect" and give my website permission. It seems that I cannot though. I would just give up, but then I see Yelp. I don't have a Yelp account and I've never given them permission to my

Facebook multi-friend-selector + new javascript API = BROKEN?

蹲街弑〆低调 提交于 2019-12-07 13:02:40
问题 I am using the fb:serverfbml tag to render a multi-friend-selector inside an IFrame. I am using the new javascript API. I have been trying ALL DAY to get it working. When I click on the underlines 'selected' link (to filter by the selected friends) the whole page refreshes and the selected friends disappear. Does the multi-friend-selector just not work with the javascript API? <fb:serverfbml> <script type="text/fbml"> <fb:request-form action="http://apps.facebook.com/rollingrazor/" target="

Facebook XFBML after login, get user information through JavaScript

拟墨画扇 提交于 2019-12-06 14:43:45
问题 I use the XFBML Facebook login button to authenticate the user. After users entered correct password. How do I use FB.Facebook.apiClient or any related JavaScript to get user logined information? 回答1: you need to init this function at begining. like this: FB.init("APIKEY","/xd_receiver.htm", {"reloadIfSessionStateChanged": true,"ifUserConnected":onFBConnected}); function onFBConnected(){ var api = FB.Facebook.apiClient; var uid = [api.get_session().uid]; var fields = ["name"]; api.users

Inserting fb:comments with javascript

淺唱寂寞╮ 提交于 2019-12-06 05:33:44
问题 How do I insert the facebook comment plugin using javascript? My website is ajax-driven and I need to load/reload the facebook comment plugin depending on a hash (index.html/#frontpage) -> (index.html/#movie1). My first thought was to use innerHTML: document.getElementById('facebook').innerHTML = "<div id='fb-root'></div><fb:comments href='http://viljegse.dk/' num_posts='10' width='572'></fb:comments></div>"; This however doesn't work, so I tried creating the elements and then appending them,