Javascript Facebook Like A Page

Issue #10 new
Dan Hill repo owner created an issue

Foo

.

Javascript Facebook Like A Page .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Would you like to answer one of these unanswered questions instead? Not the answer you're looking for? Browse other questions tagged javascript jquery ruby-on-rails ruby-on-rails-3 facebook or ask your own question. And for the show and hide stuff you could use something like : document.getElementById("containerlike").style.display = "none" or "block" and for more reliable cross browser techniques see here : But jQuery is so easy :) UPDATE Relatively to the comment I posted here below here is some ruby code to decode the "signedrequest" that facebook POST to your CANVAS URL when it fetches it for display inside facebook. // Additional initialization code such as adding Event Listeners goes here FB.getLoginStatus(function(response) { if (response.status === 'connected') { // the user is logged in and has authenticated your // app, and response.authResponse supplies // the user's ID, a valid access token, a signed // request, and the time the access token // and signed request each expire var uid = response.authResponse.userID; var accessToken = response.authResponse.accessToken; alert('we are fine'); } else if (response.status === 'notauthorized') { // the user is logged in to Facebook, // but has not authenticated your app alert('please like us'); $("#containernotlike").show(); } else { // the user isn't logged in to Facebook. If there is a way to do it automatically, for the user it will be just one click on the button of the email . You may receive SMS Notifications from Facebook and can opt out at any time.Create AccountSecurity CheckThis field is required.Can't read the words below? Try different words or an audio captcha.Please enter the words or numbers you hear.Try different words or back to text.Loading.Enter the text you see above.Why am I seeing this?Security CheckThis is a standard security test that we use to prevent spammers from creating fake accounts and spamming users. Join Stack Overflow to learn, share knowledge, and build your career. Finally some related docs : FQL pagefan table FBJS FB.Data.query Don't hesitate if you have any question . It saves query to FB in case user is logged in and has authenticated your app. Issues with FB.login and its fixes using FB.getLoginStatus. You can read about it marismith.com/iframes-facebook-app-fan-gate-wildfire here, just look down on the site. –Kenneth Jun 16 '11 at 5:25 1 mani I, for one, am glad you posted this solution! While it may not have answered rails beginner's exact question it's the perfect solution for my problem having landed here from a Google SERP. Stack Overflow works best with JavaScript enabled .. 403 Forbidden.. Learn more, including about available controls: Cookies Policy.FacebookEmail or PhonePasswordForgot account? Connect with friends and theworld around you on Facebook. Stack Overflow Questions Jobs Developer Jobs Directory Salary Calculator Help Mobile Stack Overflow Business Talent Ads Enterprise Company About Press Work Here Legal Privacy Policy Contact Us Stack Exchange Network Technology Life / Arts Culture / Recreation Science Other Stack Overflow Server Fault Super User Web Applications Ask Ubuntu Webmasters Game Development TeX - LaTeX Software Engineering Unix & Linux Ask Different (Apple) WordPress Development Geographic Information Systems Electrical Engineering Android Enthusiasts Information Security Database Administrators Drupal Answers SharePoint User Experience Mathematica Salesforce ExpressionEngine Answers Stack Overflow em Portugus Blender Network Engineering Cryptography Code Review Magento Software Recommendations Signal Processing Emacs Raspberry Pi Stack Overflow Programming Puzzles & Code Golf Stack Overflow en espaol Ethereum Data Science Arduino Bitcoin more (26) Photography Science Fiction & Fantasy Graphic Design Movies & TV Music: Practice & Theory Worldbuilding Seasoned Advice (cooking) Home Improvement Personal Finance & Money Academia Law more (16) English Language & Usage Skeptics Mi Yodeya (Judaism) Travel Christianity English Language Learners Japanese Language Arqade (gaming) Bicycles Role-playing Games Anime & Manga Puzzling Motor Vehicle Maintenance & Repair more (32) MathOverflow Mathematics Cross Validated (stats) Theoretical Computer Science Physics Chemistry Biology Computer Science Philosophy more (10) Meta Stack Exchange Stack Apps API Data Area 51 Blog Facebook Twitter LinkedIn site design / logo 2018 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 with attribution required. I want to redirect them to Main page after using facebook login button0Facebook comment moderation tool doesn't work0Website - Facebook login with get user details like name, email, phone, image url,etc, Facebook V2.9 Hot Network Questions Why Google Translate translate back not same as the first time translate? Does AWS offer a way to route HTTPS traffic to two different EC2 instances based on directory path? Who first used the word "Simplex"? Why is Windows reporting a battery charge with my desktop? Is verifying ISOs downloaded from the official website worthwhile? What is going on grammatically in the opening line of One Hundred Years of Solitude? Is Predator ever called Predator in any of the films? What is causing the problem with the RAM in this (claimed) Spectrum 48k? How can I get players to a specific place without telling them where it is? Did any computers use the Z80B? Why don't ICs include bypass capacitors? Can a lack of diseases in the medieval period lead to overpopulation? Can you share some screenshots of editor's control panels? How much smaller were medieval farm animals in England than today? What should I have my players read before our first session ever? Why is it so inefficient to generate electricity by absorbing heat? How does the light node handle funds on multiple addresses? How "scrambled" is the data on a RAID5 disk? Why is ReLU used as an activation function? A broken mirror Only Three Books: Restarting Physics after civilization collapses Can a Wish produce a paradox? printf, awk . Find more of what you're looking for with Facebook Search. Apache Server at alejandrorioja.com Port 80. It's back! Take the 2018 Developer Survey today . –dwarfy Jun 11 '11 at 7:25 1 mani, I received a lot of -1 from sick men like me and it made me read the questions and tag more carefully before answering . shareimprove this answer edited Jul 26 '12 at 5:34 bkaid 40.8k1395117 answered Jun 5 '11 at 23:01 Modatheus 171 But FBML is deprecated –Rails beginner Jun 5 '11 at 23:02 I have tryed it does not work –Rails beginner Jun 6 '11 at 0:41 Ah, then you need to do it through iFrame or Fan Gate when you created you site. Be warned that most online email providers will block it by default and may or may not allow to enable it optionally. The server encountered an internal error or misconfiguration and was unable to complete your request. Cheers UPDATE 2 As stated by somebody, jQuery is required for the javascript version to work BUT you could easily remove it (it's only used for the document.ready and show/hide). How to format a number with space to the thousands Obtain the values of a function which are greater than 1 Could you strap shotguns to the back of a centaur to be fired during a charge? Is this a real photo of Australia? The length of coil winding on cylinder. Here is my iFrame HTML when the user has not liked the page: body { width:520px; margin:0; padding:0; border:0; font-family: verdana; background:url(repeat.png) repeat; margin-bottom:10px; } p, h1 {width:450px; margin-left:50px; color:#FFF;} p {font-size:11px;} And, if the user has liked the page: body { width:520px; margin:0; padding:0; border:0; font-family: verdana; background:url(repeat.png) repeat; margin-bottom:10px; } p, h1 {width:450px; margin-left:50px; color:#FFF;} p {font-size:11px;} You liked this page javascript jquery ruby-on-rails ruby-on-rails-3 facebook shareimprove this question edited Jun 10 '11 at 18:19 Christian Fazzini 11.5k1484181 asked Jun 5 '11 at 22:54 Rails beginner 5,40125105225 Can you use the FB JS API ? –dwarfy Jun 9 '11 at 15:51 Yes i know th FB JS SDK - But i dont know how to use it –Rails beginner Jun 9 '11 at 21:05 2 other questions before I give it a shot : Is it really sensitive information ? Because one approach involve showing one div with js if the user like the page and showing another div if the user don't like the page (both divs being hidden in the page at start) so somebody could unhide them with firebug or something else and see your content. Not the answer you're looking for? Browse other questions tagged facebook facebook-javascript-sdk or ask your own question. shareimprove this answer answered Jan 17 '12 at 16:15 Drupal Sinha 193 add a comment Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. But you may consider an option of usage iframe version of like button. asked 6 years, 7 months ago viewed 100,925 times active 5 years, 1 month ago Blog Take the 2018 Developer Survey Linked 0 Facebook like check code 145 Javascript - How to detect if document has loaded (IE 7/Firefox 3) 2 How to check user like the facebook Application or not? 0 Check if user liked page or not 2 Check if a user Is fan of a Facebook page 1 Facebook App: User should first click like button to use the app 1 facebook like button - do you know if web user likes your page 2 Facebook reveal-tab / like-gate for an iframe app without PHP (Rails or javascript, please) -1 how to hide content until user likes your page without fbml? 1 How can i check if the person liked facebook page or not in social plugins of facebook? see more linked questions Related 1944How do you check for an empty string in JavaScript?6259How do I check if an element is hidden in jQuery?2958How do I check if an array includes an object in JavaScript?1474How to check if a string “StartsWith” another string?3677How to check whether a checkbox is checked in jQuery?7100How to check whether a string contains a substring in JavaScript?1688How to check for “undefined” in JavaScript?1865How can I refresh a page with jQuery?1493How does Facebook disable the browser's integrated Developer Tools?-1how to display the content of csv file in a input text box? Hot Network Questions Is there a list of old browsers that only support TLS 1.0? Should I use "a" or "an" when I abbreviate a word? Definition of "telescope" What should I have my players read before our first session ever? Compare two numbers given as strings How to prove a non-provable statement? That is weird. more hot questions question feed . Internal Server Error. See photos and updates from friends in News Feed. –PanMan Mar 28 '14 at 13:23 add a comment up vote 0 down vote There is an article here that describes your problem Fans will see this content 5a02188284 http://deuteriumcorporation.leforum.eu/viewtopic.php?p=21976 http://dunperega.bloges.org/1515595229/ http://clashroyaledeckbuilder.com/viewDeck/2388942 http://disdepar.jugem.jp/?eid=58 http://eseran.findthebetter.com/2018/01/10/proxy-pour-pirater-facebook/ https://ghostbin.com/paste/bmbtv http://setzlandsasoro.blogcu.com/facebook-video-calling-software-for-windows-8-free-download/34851235 http://www.codesend.com/view/a86b9a2eb83b766c64563dd127f2a296/ http://gotfdowlinin.rebelmouse.com/huong-dan-hack-pass-facebook-cua-nguoi-khac-2524216121.html http://bitbucket.org/richildcharmo/ficpayporwi/issues/19/free-profile-pictures-for-facebook-funny

Comments (0)

  1. Log in to comment