fbml

No response back on FaceBook sharing

不想你离开。 提交于 2019-12-12 04:59:11
问题 I want to catch the response when a share is made on Facebook and on the response an alert will occur. I made the following script <div id="fb-root"></div> <script type="text/javascript"> window.fbAsyncInit = function() { FB.init({ appId:'<?php echo $this->config->item('appID'); ?>', cookie:true, status:true, xfbml:true,oauth : true }); }; (function(d){ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) { return; } js = d.createElement('script'

Trouble with <fb:like> page title, like count, and page url

旧巷老猫 提交于 2019-12-11 16:54:50
问题 I have a set of pages in my site that are using the FBML method of inserting a FB Recommend button. My problem is that every page on my site shows the exact same recommend count ("557 people recommend this page" even though I just installed the button), and when I've tried to Recommend it myself, it shows up in my news feed with the wrong page title, the wrong URL, and of course, every recommend button on the site is incremented. Here is my code: og tags (I replaced these with anonymous

Will Old Tab using Static FBML tab be removed

半世苍凉 提交于 2019-12-11 15:38:51
问题 Reading from "http://developers.facebook.com", they are deprecating FBML. On Jan 1, 2012: FBML will no longer be supported on Platform. June 1, 2012: FBML apps will no longer work. All FBML endpoints are removed. My question is - will my OLD Static FBML Tabs be diabled and the tab content not accessible? If yes, what can I do? 回答1: Yes they will. (stop working) Only thing you can do is update your tab applications. Facebook has given a lot of warning that FBML is planned to be deprecated and

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

Is there a way to access an iframe's window object from the canvas in FBJS? (facebook)

江枫思渺然 提交于 2019-12-10 19:00:54
问题 From the facebook canvas, I need to be able to access an iframe window. Normally you could do this with window.frames, but FJBS doesn't seem to allow access to the window object. Has anyone figured out how to access window objects? 回答1: you could try this. Let me know how it works. var myIframe = document.getElementById('myIframeId'); // could retrieve window or document depending on the browser // (if FBJS allows it!?) var myIframeWin = myIframe.contentWindow || myIframe.contentDocument; if(

Is there a way to reload the page after <fb:like> is clicked?

半城伤御伤魂 提交于 2019-12-10 09:45:43
问题 I'm wondering about this: I have a simple facebook-connect app that will only show certain content after you login and liked a certain page. It works (huzzah!) but I want to make it more user friendly by making it refresh automatically after you pressed the like button. Here's some code: <?php if ($me) { $pageid = -----------; $uid = $me['id']; $likeID = $facebook->api( array( 'method' => 'fql.query', 'query' => 'SELECT target_id FROM connection WHERE source_id = ' . $uid . ' AND target_id =

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="

Does HTML5 support namespaces?

大城市里の小女人 提交于 2019-12-06 18:29:41
问题 Are we allowed to extend HTML5 with new tags like <foo:bar> in HTML5? I ask because the Facebook API includes just this kind of thing ** , and our pages are defined as HTML5. More specifically, is it possible to make a HTML5-conformant page that uses fb:fbml? 回答1: Strictly speaking, no. You can have JavaScript code write the FBML which gets around any potential validation issues, but it's bad form. That aside, even if you could, you don't want to make a page that uses FBML. FBML will be

Getting user location on Facebook page tab

别来无恙 提交于 2019-12-06 12:13:10
问题 Coca-Cola seems to have nailed it pretty well. Even before any user interaction, they manage to know where you are at their Facebook page: This works in IE, so no HTML5 involved (and after all, Facebook won't recognize the navigator object in Javascript). How do they do this? 回答1: First of all, I don't think it can be done using javascript. Here's how you can do it using a server side language, like PHP. If you take a closer look of the page you provided (coca cola landing tab) you can see