Facebook no longer scrapes apps.facebook.com - javascript

I used to be able to post a link like 'apps.facebook.com/my_app' to my business page creating a post with the og: tags located in my canvas page root. This page had a redirect to the page tab (www.facebook.com/my_page/sk=app_12345678). Everything worked fine.
Since a couple of days this isn't working anymore: It still redirects but no image is included.
Additionally, the URL linter now refuses to lint any 'apps.facebook.com' URLs. Says:
Facebook URLs aren't scrapable by this Debugger. Try your own.
Has anyone else seen this? Is this something new? Is there a workaround?

Well, seems to have been just another temporary Facebook glitch...
Works again!

Related

Hiding URLs from the location bar

This might be a silly question which I'll delete if I realise, so if you are reading this then I didn't yet figure it out.
I have some software which is online (addressable) and available but it's a bit of a secret, so instead of just hitting my software when you come to my domain, you are shown a blog that I wrote and hidden within that blog is a link ;)
All well and good.
Now the problem is that users of my software always post screenshots which gives my 1/2 secret URL away. EEEEK yep! So I wanted to have the url be just the plain old normal domain, so as not to make things too easy for them hacky types :p
I have full control over everything here. Clientside / Server / Everything. Initially you hit some jsp and then the GWT app (inside of Tomcat) - you have to provide login details in the GWT app. So I have plenty of places to do this URL hiding / faking but any ideas to help would be great.
...and yes I'm posting this (perhaps isn't too dumb)!
Many thanks in advance.
You can use the javascript history.pushState() here
history.pushState({},"Some title here","/")
For example, on http://yourwebsite.com/secretlink.html, after the JS runs, the URL bar will show http://yourwebsite.com/ without having refreshed the page1. Note that if the user refreshes the page they will be taken to http://yourwebsite.com/ and not back to the secret link.
You can also do something like history.pushState({},"Some title here","/hidden.jsp"), so that if the user refreshes the page you can show them an error page that tells them to find the secret link and open it again.
1. If you pushState() some other domain than your own, a refresh will happen so this cannot be abused to phish sites
Include the inner page as an iFrame

HTML Redirects to wrong

I am doing work for a client and I am beating my head against the wall trying to figure out what is happening on this site. First, he uses godaddy as his host and uses their express email marketing. One of the campaigns he was sending out had a wrong url in it. So that was easy enough to fix once I got logged in. Now, on the email that is sent out there is a link that says "To view this message as a printable PDF document, Click here." and it opens it up in the browser. NOW, I've tried finding the file it opens to change it with no luck. I've tried changing the html file in the directory it points to, but that does nothing and doesn't update the page. Any test page I create and try and open in a browser keeps the url but pulls in a different page (one in particular).
SO, as I've mentioned, in the email version of this, I've gotten it to work, just not in the browser version because I have no idea where it's pulling from or what is overwriting it.
Here is the link
http://nationalproduct.com/emailcampaigns/racing_stepmats/
At the bottom of this page there is a "Printable Version" button. This button should point to here:
/racing_stepmats/pdf/stepmats_racing.pdf#zoom=70
But instead points to here:
/regular_stepmats/pdf/stepmats_regular.pdf#zoom=70
I've also looked at the .htaccess file and there's only one line on there rewrite engine on so there's nothing in the .htaccess that's automatically loading or redirecting that I can see. Any wrong url that a user puts in doesn't go to a page not found, it just keeps what's been typed in the url bar but loads the racing rv mat page. ?:O
I've tried changing it in chrome and firefox in the developer tools and I know how to change the link to be correct, but I have no way of saving it from google or firefox to overwrite, that I know of at least. Any help on this would be greatly appreciated! Thanks in advance!
you just have to edit this part of the source of the page
<area shape="rect"
_mce_shape="rect"
coords="281,787,406,837"
_mce_coords="281,787,406,837"
href="http://nationalproduct.com/emailcampaigns/regular_stepmats/pdf/stepmats_regular.pdf#zoom=70"
_mce_href="http://nationalproduct.com/emailcampaigns/regular_stepmats/pdf/stepmats_regular.pdf#zoom=70">
replacing the wrong URL with the correct one
The owner has 15 different domains and was hosting this site, and all of it's content, in a subfolder. It was on the backend of godaddy where I found all the domains and where they were being hosted. Normally this would have been easier to find but there were hundreds of files and folders on the backend. Thanks for the pointers though ;) Fixed

Simple chrome redirect extension

I intend to create a simple chrome extension (for personal use) that simply detects when the user opens a new tab and redirects him to a certain website. The redirection url can be set in the source code, there is no need for some kind of form to submit it (since this will be, like I said, mostly just used by me and I can change that value easily in the code).
The problem is I don't know where to start from or how to start. Can anyone point me in the right direction? I've read google's "Getting started: Building a chrome extension" by the way.
Thanks a lot!
I wrote an extension sometime ago and published it to the chrome webstore https://chrome.google.com/webstore/detail/instructables-default-all/oeeoefddkogaamghjjoelcgmellpacid?hl=en the source code is available here http://code.nishantarora.in/instructables-default-all-steps-chrome-extension/src
The purpose of this extension is to redirect a user opening an instructable on instructables.com should be shown the url appended with ?ALLSTEPS to load the all steps page for that particular instructable. The code is pretty easy to understand.

Website FB login redirects to blank page

I'm getting a blank permissions page on facebook login using the Javascript SDK. It was working for the last few days and I'm not sure what I changed. I don't seem to be using my app secret anywhere (I do define the API key). Are there any suggestions for troubleshooting? The Facebook debug page unfortunately just had me add some meta tags related to open graph which didn't change anything. I've tried looking at the 100s of other questions like this but can't figure it out. I tried reverting to an older version of my code so I'm pretty sure it's something with the Facebook, but it was working.
The blank page is in the popup window and has something about permissions in the URL. My site doesn't require any permissions though.
This is the URL in the login window after signing in:
https://www.facebook.com/dialog/permissions.request?_path=permissions.request&app_id=number_I_removed&redirect_uri=http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D11%23cb%3Df8917d1784b726%26origin%3Dhttp%253A%252F%252Fpostacle.com%252Ffd565a0d8d775e%26domain%3Dpostacle.com%26relation%3Dopener%26frame%3Df12565ffe5570f2&sdk=joey&display=popup&response_type=token%2Csigned_request&domain=postacle.com&fbconnect=1&from_login=1&client_id=number_I_removed
If I reload my page I'm signed in correctly. The app ID and Client ID are the same in the URL. Not sure if they should be but wasn't specified a client ID or means of generating one.
OK, so of course I left out a critical detail: I'm using Django. Further, I'm so reliant on Django I was serving my Facebook channelUrl in a view. Facebook's API didn't like that. After reading the story of a similarly cursed fellow, I changed my ways: URL links directly to channel.html file. No more sorrows.

How to get the actual hard link URLs

I am doing research on a subject. The sites which are developed in javascript for eg. https://hp.taleo.net/careersection/2/jobsearch.ftl# . If we click on the paging, the URL doesn't change and yet the contents of the page are changed. Whether there are some variables which are getting submitted and if yes then what are these variables. What would one have to do if one wants the actual hard link the next page for this site or the similar sites. Thanks in advance.
There are no hard URLs... The site is loading it dynamically through ajax.
Inspect the website using Firefox or Chrome/Safari Dev Tools. Open the network tab and submit the form.
Network Tab
As you can see, it's posting the data to that page. Do some investigation and see what you come up with.
You can also try turning off javascript and seeing if it falls back to hard urls.

Categories

Resources