laures Index du Forum
laures Index du ForumFAQRechercherS’enregistrerConnexion

Facebook Like Url With Hash

Poster un nouveau sujet   Répondre au sujet    laures Index du Forum -> Portail -> News
Sujet précédent :: Sujet suivant  
Auteur Message

Hors ligne

Inscrit le: 08 Mai 2016
Messages: 52
Localisation: Montpellier

MessagePosté le: Mar 9 Jan - 12:16 (2018)    Sujet du message: Facebook Like Url With Hash Répondre en citant

Facebook Like Url With Hash
> DOWNLOAD (Mirror #1)

shareimprove this answer answered Nov 25 '08 at 15:45 Julien Oster 1,9721414 add a comment up vote 7 down vote Probably the only choice is to read it on the client side and transfer it manually to the server (GET/POST/AJAX). –TTT Apr 5 '13 at 12:49 21 2014, still faced with this junk tag –David Cumps Jan 17 '14 at 20:05 24 2015, still getting issue. {path: '', redirectTo: '/facebookLoginSuccess'}, . Jump toSections of this pageAccessibility HelpPress alt + / to open this menuRemoveTo help personalize content, tailor and measure ads, and provide a safer experience, we use cookies. See "Change in Session Redirect Behavior" in this week's Operation Developer Love blog post for the announcement. For AngularJS, appending "#!" to the return URL should work. Enjoy! // Get rid of the Facebook residue hash in the URI // Must be done in JS cuz hash only exists client-side // IE and Chrome version of the hack if (String(window.location.hash).substring(0,1) == "#") { window.location.hash = ""; window.location.href=window.location.href.slice(0, -1); } // Firefox version of the hack if (String(location.hash).substring(0,1) == "#") { location.hash = ""; location.href=location.href.substring(0,location.href.length-3); } URI should be clean shareimprove this answer edited Jun 21 '13 at 23:25 sakibmoon 1,65831529 answered Jan 1 '12 at 0:36 Jeremy Whitt 19125 Be careful about making assumptions when parsing any data that you don't create. Learn more about history.replaceState. By clicking or navigating the site, you agree to allow our collection of information on and off Facebook through cookies. Until then, add the following to your head tag to resolve this issue: if (window.location.hash && window.location.hash == '#=') { window.location.hash = ''; } Or a more detailed alternative (thanks niftylettuce): if (window.location.hash && window.location.hash == '#=') { if (window.history && history.pushState) { window.history.pushState("", document.title, window.location.pathname); } else { // Prevent scrolling by storing the page's current scroll offset var scroll = { top: document.body.scrollTop, left: document.body.scrollLeft }; window.location.hash = ''; // Restore the scroll offset, should be flicker free document.body.scrollTop =; document.body.scrollLeft = scroll.left; } } shareimprove this answer edited Oct 16 '13 at 21:07 answered Sep 4 '11 at 7:14 Ryan 7,3932070129 10 what field is left blank? This is very cryptic –user210504 Sep 15 '11 at 5:53 68 Ridiculous. Tell history to replace the current page state with the clean URL. –BlueSun3k1 Oct 14 '17 at 22:40 add a comment up vote 55 down vote if you want to remove the remaining "#" from the url $(window).on('load', function(e){ if (window.location.hash == '#=') { window.location.hash = ''; // for older browsers, leaves a # behind history.pushState('', document.title, window.location.pathname); // nice and clean e.preventDefault(); // no page reload } }) shareimprove this answer edited May 30 '16 at 22:54 Communityf 11 answered Apr 9 '12 at 2:02 likebeats 742617 2 tried this. –Gorgi Rankovski Nov 12 '12 at 16:33 show 17 more comments up vote 86 down vote TL;DR if (window.location.hash == '#='){ history.replaceState ? history.replaceState(null, null, window.location.href.split('#')[0]) : window.location.hash = ''; } Full version with step by step instructions // Test for the ugliness. To prevent this, set the redirecturi in your login url request like so: (using Facebook php-sdk) $facebook->getLoginUrl(array('redirecturi' => $SERVER['SCRIPTURI'],'scope' => 'useraboutme')); UPDATE The above is exactly as the documentation says to fix this. Here's the hack I threw together. shareimprove this answer answered Sep 8 '16 at 14:10 rcomblen 3,2971523 add a comment up vote 0 down vote I know this reply is late, but if you are using passportjs, you might want to see this. shareimprove this answer answered Oct 21 '15 at 10:35 Ivo Smits 586 add a comment up vote 1 down vote For me, i make JavaScript redirection to another page to get rid of #=. Stack Overflow works best with JavaScript enabled .. Please consider leaving a comment on the Facebook Platform Updates blog post and follow this bug to get a better answer. Review: –alditis Sep 28 '17 at 18:06 add a comment up vote 0 down vote I use this one, to delete '#' symbol as well. As far I understand, Facebook decided to use simulated anchors. Before submit: $("form").submit(function() { $("input", "#urlhash").val(window.location.hash); }); On page load: var hashVal = $("input", "#urlhash").val(); if (IsHashValid(hashVal)) { window.location.hash = hashVal; } IsHashValid() can check for "undefined" or other things you don't want to handle. Please ensure that your app can handle this behavior. Not happy with FB. all in all it ends up being a few jQuery calls, one to save the value, and another to restore it. GET RESPONSE 302 Found Location: 2. asked 9 years, 1 month ago viewed 87,974 times active 1 year, 10 months ago Blog Take the 2018 Developer Survey Linked 0 How to read Hash Parameters in Url 3 Pass URL's with hash value for redirection 0 How to get Url from server side 3 How can I get the whole requested url in C#? -5 Can a # symbol be stored in url and included in REQUESTURI? -5 Getting # value at the end of url in 1 How to get # part of the Url from HttpContext.Current.Request -1 How to get query in the URL after # 2 How can i get the html of the page? 3 Reading Parameter values which contain # in url instead of? see more linked questions Related 632How can you check for a #hash in a URL using JavaScript?2006Encode URL in JavaScript?1490Get current URL in JavaScript?538How to code a URL shortener?2706How can I get query string values in JavaScript?769How to get the value from the GET parameters?2339Get the current URL with JavaScript?898How do I get the current absolute URL in Ruby on Rails?2526Change the URI (URL) for a remote Git repository885Get the full URL in PHP Hot Network Questions Is Sam Gamgee an orphan? Sudoku Solver in Python Recursive Collatz Conjecture What is this purple-leafed (potted) plant? Fair treatment for employees always late due to public transport How can I recover the contents from an Amiga HDD using modern Linux? Did Poe's reckless behaviour actually save the Resistance fleet? Should I use "a" or "an" when I abbreviate a word? What makes the Mauritius Passport so valuable? Why is it so inefficient to generate electricity by absorbing heat? How to measure small, spiky amounts of current? Numeral system for a species with 8 fingers How can Dwarfs produce honey underground? Does a 2100W angle grinder need an earth pin? Equation numbers do not align to rightmost in beamer What is the mistake in "There are many Danes who speak English"? What sense does it make for "sharpness" to be adjustable on a monitor? Compare two numbers given as strings How did people use ed? How can I get players to a specific place without telling them where it is? Why would extra fuel be needed to de-orbit the ISS (if it comes to that)? Can True Strike grant advantage to Witch Bolt? Is the Mirror Universe the same one across all Star Trek shows? The Ultimate Typo more hot questions question feed default . history.replaceState(null, null, cleanHref); } else { // Well, you're on an old browser, we can get rid of the = but not the #. Stack Overflow Questions Developer Jobs Tags Users current community help chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Regards Artur You may see also how to play with back button and browser history at Malcan shareimprove this answer answered Dec 30 '08 at 11:16 Artur add a comment up vote 3 down vote Just to rule out the possibility you aren't actually trying to see the fragment on a GET/POST and actually want to know how to access that part of a URI object you have within your server-side code, it is under Uri.Fragment (MSDN docs). 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. The reason for this is OAuth security -- preventing attacks due to crafting a malicious redirect URI. This means if you clicked somewhere, they simulate that as an anchor inside of your page, and when the AJAX communication starts, they change the anchor bit of your URL as well. They can't even get their own docs right –Brenden Oct 7 '11 at 23:39 1 The UPDATE works 5a02188284
descargar chat para facebook en mi celularsign in to netflix with facebookhttp ondapix condating app zonder facebookdownload facebook motorola defydescargar go chat for facebook para nokia n8best games for facebook 2012cartoons for profile pics in facebookdescargar gratis facebook chat para celular nokia c2cute couples images for facebook

Revenir en haut

MessagePosté le: Mar 9 Jan - 12:16 (2018)    Sujet du message: Publicité

PublicitéSupprimer les publicités ?
Revenir en haut
Montrer les messages depuis:   
Poster un nouveau sujet   Répondre au sujet    laures Index du Forum -> Portail -> News Toutes les heures sont au format GMT + 1 Heure
Page 1 sur 1

Sauter vers:  

Index | Panneau d’administration | créer forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
darkages Template © larme d'ange
Powered by phpBB © 2001, 2005 phpBB Group
Traduction par :