fbml

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

淺唱寂寞╮ 提交于 2019-12-06 03:15:09
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 = ' . $pageid ) ); if ( empty($likeID) ) { // Person is LOGGED IN, but has NOT LIKED echo '<script src=

facebook iframe App: Send/Like button z-index issue

混江龙づ霸主 提交于 2019-12-05 08:49:07
We are having a problem with our facebook like/send button, if you open: http://apps.facebook.com/bymii-test/products.php?pageid=216605071714962&prd_id=35&prd_name=Coalesce : - click facebook send, the box is behind the facebook sidebar. Is there any way to: change the z-index - or to make the window pop up on the left? I FINALLY FOUND THE ANSWER!! 1 1/2 Hours searching later.. just enter this code into your CSS file: .fb_edge_widget_with_comment span.fb_edge_comment_widget { top: 15px !important; left: -250px !important;} Hope this is what you were looking for, because it was exactly what I

Are FBML apps required to provide HTTPS canvas url by 1st of October?

佐手、 提交于 2019-12-04 16:52:58
Since FBML apps canvas url(s) are not directly accessible by the end user, I suppose not , but can anyone confirm this ? Confirm: "An SSL Certificate is required for all Canvas and Page Tab apps (not in Sandbox mode and not FBML)." See here: http://developers.facebook.com/docs/oauth2-https-migration/ Though I am currently getting mixed content warnings in IE and Firefox when using Facebook in https mode and then loading content over http in the app. So users of your app might get kinda bad feeling if you do not serve your content over https. UPDATE: Facebook: "We have heard that there is some

Getting user location on Facebook page tab

∥☆過路亽.° 提交于 2019-12-04 15:13:57
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? 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 that selection of the country works even if the user is not logged in with facebook. When you set up a

Detect Like with Facebook JavaScript API + iFrame

放肆的年华 提交于 2019-12-04 13:30:50
Building an app with the Facebook JavaScript API that will embedded into a page using the new iframe method. I want to detect if they have liked the current page. Usually I would use print_r($_REQUEST) in PHP but that doesn't seem to work when using an iframe. There is also this option: http://developers.facebook.com/docs/reference/fbml/visible-to-connection/ but it says its deprecated and I have never liked this method as its fairly hacky. What is the way t do it now? Prefer to use XFBML + JavaScript API but can use PHP if required. We've done this several times, and it seems to work pretty

What does “?ref=ts” mean in a Facebook application URL?

前提是你 提交于 2019-12-03 15:14:31
问题 When Facebook drives traffic to an application, it often append &ref=whatever to the query string. This is useful for figuring out which integration points are working or not. I've figured out what some of these mean. For example: ref=bookmarks - the user clicked on a bookmark. ref=game_my_recent - the user clicked on the upper portion of the games dashboard. What does "ref=ts" mean? It accounts for a ton of traffic. I've viewed source on pages all over common Facebook pages and cannot find a

HTML: What is `xmlns:fb=“http://www.facebook.com/2008/fbml”`?

做~自己de王妃 提交于 2019-12-03 06:32:38
问题 What is xmlns:fb="http://www.facebook.com/2008/fbml" ? I've been seeing it in a lot of <html> tags recently. What does it do? 回答1: While I haven't seen it in use, this is standard XML notation for extending the current XML namespace (in this case XHTML) with another one (in this case FBML). This tells your browser where to find the specification for FBML which in turn tells it how to handle the <fb:*> tags. Technically speaking, the value of the xmlns:* attribute is simply a unique identifier

Facebook Login Button Vs. OAuth Dialog

删除回忆录丶 提交于 2019-12-02 20:31:11
What's better? Login Button OAuth Dialog I like the Login Button because it shows profile pictures of the user's friends who have already signed up for your application and it opens a dialog overlay instead redirecting to a new page as does the OAuth Dialog. But, I think the OAuth Dialog is newer. Which should we use? Also, the Login Button is XFBML. Apparently, Facebook is in the process of deprecating FBML . Does that mean XFBML is being deprecated too? It isn't that one is better than the other - they are intended to accomplish different things. The login button is used for external

HTML: What is `xmlns:fb=“http://www.facebook.com/2008/fbml”`?

泄露秘密 提交于 2019-12-02 20:11:39
What is xmlns:fb="http://www.facebook.com/2008/fbml" ? I've been seeing it in a lot of <html> tags recently. What does it do? Matthew Scharley While I haven't seen it in use, this is standard XML notation for extending the current XML namespace (in this case XHTML) with another one (in this case FBML). This tells your browser where to find the specification for FBML which in turn tells it how to handle the <fb:*> tags. Technically speaking, the value of the xmlns:* attribute is simply a unique identifier, but often it is a URL which points to a definition in one form or another. In this

fb:serverfbml won't render on Opera and IE

自作多情 提交于 2019-12-02 04:44:06
I asked the same question in Facebook developer forum, but for some reasons I want to repost it here. I hope that's okay. I have the following fb:serverfbml snippet. <fb:serverfbml id="invite_friends_form" style="width: 100%"> <script type="text/fbml"> <fb:fbml><p>Testing FBML rendering</p></fb:fbml> </script> </fb:serverfbml> <script> $(document).ready(function() { // Parse XFBML tags FB.XFBML.parse(); }); </script> It renders correctly in Firefox and Chrome. I got the usual Facebook loading animation for a moment, and then the sentence "Testing FBML rendering" is displayed. BUT, when I test