Posts

Showing posts with the label Facebook

How to enable Facebook Comment reply function on Facebook Profile

Image
This is a guide on how to enable Facebook comment reply on your Facebook profile. Summary of steps: 1. Open Chrome 2. Enable emulate geolocation coordinate. 3. Set geolocation to New Zealand ("-41.211111", and "174.781111"). 4. Open touch.facebook.com 5. Select "Check in" 6. Open facebook.com 7. Comment reply should appear now!

Facebook Sharer.php "The message could not be posted to this Wall." Error

Image
UPDATE: As of 2014-01-16 10:17 (GMT+8), this issue has been fixed. View the bug report . Facebook Sharer Error. Got this error message after updating Wordpress plugin for one of the site that I help maintain. Debugging When inspecting the network tab for the ajax request, I saw this error description in the response. for (;;);{"__ar":1,"error":1367001,"errorSummary":"Could not post to Wall","errorDescription":"The message could not be posted to this Wall.","payload":null,"bootloadable":{},"ixData":[]} After searching in Google, most people suggest that error 1367001 is due to incomplete URL format. But for my case, the URL is in complete form. So I did a comparison with the sharer on Techcrunch page. I noticed the difference is mainly on the attachment section. attachment[params][images][0] Conclusion Its Facebook sharer permission issue. Seems like Facebook s...

Facebook hellocdn.html?v=1 browser popup. Not a virus.

Image
tl;dr Not a virus. Its popup from Facebook Messenger application to ping the CDN. ----- I noticed that from time to time, especially when my left comp is idle overnight, I'll have these blank pages opened in my browser window the next day. https://fbcdn-creative-a.akamaihd.net/hads-ak-prn1/hellocdn.html?v=1 My first thought was like... gosh, is there's malware on my comp? Then I started to inspect my comp. First Question. Is the CDN address valid? Did a search on the list of CDN addresses and found this stackoverflow page . Seems like its "fbcdn-creative-a.akamaihd.net" is one of the Facebook CDN. Furthermore, akamaihd.net is a reliable CDN provider. Next Question. If the CDN address is valid, could it be that Facebook CDN got compromised? So I inspect the page elements, and resources (js files). Seems like pretty OK, the URL that the script call is actually defined in the "result_endpoint " variable. // hardcode the return url var...

Why Hotmail SmartScreen Should do Better

Image
Got this spam mail that looks as if its from my other email account (Yahoo Mail). Further inspect on the header reveals that the mail is from hotmail_631448ecb4add0e [at] hotmail.com. And the mail server is actually from the IP 179.89.131.27. Why Hotmail SmartScreen not doing its job SmartScreen should have filtered the email content, based on EITHER one of the following criteria, that can be implemented by checking just the email header. 1. The email content is obviously spam content. Nuff said. 2. The sender is obviously from a "anonymous" email that pretends to be another email. 3. The IP (179.89.131.27) of the mail server is OBVIOUSLY hosted on a spam source. This can be easily detected by cross-check with one of the spam database out there. For example http://www.dnsbl.info/ . These are simple methods to provide minimal layers protection for Hotmail users.  (Notice I haven't even go into advanced SPAM fighting techniques like using  DMARC ) Takea...

Facebook

Been having problem with Facebook Apps auto-resize and tried to remove annoying vertical scrollbar. After Googled for a while, found the following snippet. Its a simple hack that works perfectly! <div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js"></script> <script> FB.init({ appId : 'YOUR-APP-ID-HERE', status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); </script> <script type="text/javascript"> window.fbAsyncInit = function() { FB.Canvas.setSize(); } // Do things that will sometimes call sizeChangeCallback() function sizeChangeCallback() { FB.Canvas.setSize(); } </script>

Facebook Puzzle (breathalyzer)

Facebook Puzzle Description : http://www.facebook.com/careers/puzzles.php?puzzle_id=17 Guides : http://www.davideisenstat.com/fbpfaq/#x1-320004.7 Readings : http://en.wikipedia.org/wiki/Levenshtein_distance http://www.norvig.com/spell-correct.html http://www.cs.princeton.edu/introcs/96optimization/LCS.java.html http://www.ics.uci.edu/~eppstein/161/960229.html http://sys-view.blogspot.com/2009/12/breathalyzer-facebook-puzzle.html Tips : Words to note: 1. kaerfoolly 2. brefalyzah 3. composishun Testcases : http://www.facebook.com/note.php?note_id=95935379414#!/topic.php?uid=15325934266&topic=8941

Facebook Puzzle (liarliar) Test-cases

Below are some of the test cases I picked (and tested against) from the liarliar Facebook discussion forum . Test-case 1 http://paste2.org/p/870660 $ javac LLTest.java $ java LLTest 100000 20090727 >1.in $ java liarliar 1.in 50091 49909 Test-case 4 http://paste2.org/p/870663 $ java -Xmx512m LLTest4 1000000 1 >4.1.in $ md5sum 4.1.in b91b728927d43da2c745f4ff2a57953b 4.1.in $ java liarliar 4.1.in 500112 499888 Test-case 5 http://paste2.org/p/870666 $ java -Xmx512m LLTest4 1000000 1 >4.1.in $ md5sum 4.1.in b91b728927d43da2c745f4ff2a57953b 4.1.in $ java liarliar 4.1.in 500112 499888 Above test-cases are not created by me. Credits to David Eisenstat .