My website has just been approved by AdSense, and I tried to put some basic display ads on the site.
I've set up the ad, and pasted the HTML Code in my project.
When I visit the website, the console says:
Failed to load resource: net::ERR_ADDRESS_INVALID (at adsbygoogle.js:1)
I thought it was a problem of my website, but when I try to manually open the adsbygoogle JS, my browser also says ERR_ADDRESS_INVALID.
Anyone knows what to do?
Thanks in advance
Never mind, it was because of my Windows hosts file... Some program I've used earlier, blocked a lot of Hosts through it.
Related
I'm sharing content from a website and every time I paste the link into Facebook it says 'page not found'.
Sometimes it works when I manually add the 'www.' in front of the URL in the address bar.
EXAMPLE
Shows page not found:
http://roundreviews.co.uk/reviews/speakers/native-union-monocle-speaker/
Works when you manually place www. in front:
www.roundreviews.co.uk/reviews/speakers/native-union-monocle-speaker/
I honestly have no I idea why it's doing this, any thoughts on how it can be fixed on the web side?
Also...
I have tried with the link below with both the www. and without yet it doesn't work with either of them, this is all very strange. This is the only link I have tried and it doesn't work with both:
www.roundreviews.co.uk/microphones/spark-digital-microphone/
Any help is much appreciated, thanks.
For me what it worked was to access the Facebook Debugger, as Goose said.
I saw that the scrape was about 12 hours ago, looks like it fetches the first time and saves it as caché or whatsoever...
What it worked for me is to debug the url, then click "fetch new scrape information" after the previous information has been shown.
Hope it works!
For those running across this today, you might find that you also need to verify your domain and link it to your page.
To do this you need to
Set up a Facebook Business Account
Add your page to the business account
Verify your domain (using DNS TXT or adding a page facebook gives you)
Under domains, connect your page as an asset of that domain
I've been trying to get to bottom of this problem for a few hours but I can't seem to fix it, I've seen other questions similar to this and tried to use those to implement a fix for my problem but to no avail.
I've built a facebook contest canvas app which displays fine independantely but when I link it to a facebook page (as a link to a new contest) chrome no longer displays is and gives the following warning:
The page at 'https://www.facebook.com/contest/app_xxxxxxxx' was loaded over HTTPS, but ran insecure content from 'http://mydomain.com/': this content should also be loaded over HTTPS.
I've learned partly by trawling this site that the chrome security is fussier, and the app loads correctly, without errors in FireFox and IE but I can't find any resources that are loaded from a non https source.
I have been through with firebug checking in the net tab and checked that all of the loaded resources are using https (the png images, the jpg images, the css files and the jquery js files which are all hosted on the same server that has the certificate), I have even tried hosting the transitional dtd doc itself but nothing seems to make the warning go away and the app display correctly.
In the other similar questions it seems that there are either resources sourced from non-https sources or there are ssl switches used in the javascript library for facebook passed before the fb init.
The problem is that I am using only the php sdk not the js one (although I am using version 1.9 of jquery, hosted on my server) and I could find no similar ssl specific settings there.
If someone could give me a tip about how I could investigate further, what I might be missing or is familiar with this issue I'd be interested to hear about it.
Thanks a lot.
David
Facebook requires the app to come from https:// you need an ssl certificate on your server and to enable ssl. in the Facebook app settings change secure url to https://mydomain.com url
I did have a similar issue recently (but it only caused issues on IE10) and I resolved that by adding P3P header
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT');
Found the solution!
In the facebook app settings, if the page tab url is specific to a page e.g. https://www.mydomain.com/index.php, chrome doesn't complain with the insecure content message but if you reference a directory the error is propogated. I found this confusing since the 'canvas' urls need to be directories.
I hope this answer will save someone a few hours! :)
Yesterday I successfully got my flash project to log in with the facebook as3 api.
Today I tried using the application again, and now its not working. I didn't change any code... Does anyone know how I should approach debugging this or has this happened to anyone else?
Thanks
A friend created a solution for this issue. I fixed my flash sites and their facebook connect with AS3 SDK.
We're from Mexico so it's in spanish:
Facebook AS3 Fix
Traduction:
1.- If you're using GraphAPI_Web_1_8_1.swc, delete it.
2.- Download the modified api from Here
3.- Copy the folder in your libraries, if you already had the facebook folder, overwrite.
4.- Compile the project.
The problem happened because facebook modified its http://connect.facebook.net/en_US/all.js file in a way in which the FacebookJSBridge.as file from the as3 api made some calls to "FB.JSON". Now they should be made to "JSON" instead.
1.- If you are using GraphAPI_Web_1_8_1.swc delete it.
2.- Download the modified graph api from here
3.- Paste those folders on your librarys, if you had the facebook folder overwrite it.
4.- Publish your project.
This problem started when facebook changed its file connect.facebook.net/en_US/all.js in a way that all the calls made from the as3 file "FacebookJSBridge.as" must be changed from "FB.JSON" to just "JSON".
src: http://ederchrono.com/blog/2012/05/09/fixing-fb-graph-api-for-as3/
The facebook connect functionality on all flash sites made at work have also stopped working. When clicking on the facebook connect button nothing happens. And we’ve made no changes. Now everyone’s working frantically to find a solution.
I hope someone finds a solution soon. Facebook has posted no changes, though they should look into this. I bet tons a flash sites have just stopped working.
I was trying the open graph tutorial from Facebook developers site.
http://developers.facebook.com/docs/opengraph/tutorial/
I copied and pasted the code and changed the app ID with mine. Step 2 worked fine, but from step 4 meta tags are not working. I checked the code several times,app ID and "YOUR_NAMESPACE"is changed correctly. I was developing inside localhost of WAMP server. Did I miss anything? I followed every step from the tutorial.
Secondly 'Add to timeline' or 'login' box isn't showing in any browser except chrome. Inside chrome it works fine, but in firefox or IE it shows only a link to Facebook site. Why is that!
And suggest me some good tutorial on open graph.Please Help!
It probably didn't work as it says the object page in Step 4 has to be publicly accessible. Facebook needs to be able to gather data from that page to present in time line. Your localhost mamp install won't be publicly accessible.
From the tutorial >>
Before being able to publish an Open Graph action for a user and having define its
corresponding connected object type in Step 3, you will now need to create a publicly
accessible web page that represents this object using Open Graph metatags. Once this
object page is created, you can use the Graph API to publish an action.
I have not seen any good tutorials on it besides facebook's. They go in depth into every aspect of it as it is their product. I followed that same tutorial and it works perfectly.
Without your code I cant really help. If you put your meta tags up ill have a look.
Im also not sure if it actually works off the local host.
ive seen many tutorials on setting up your facebook app
but i havent found anything that worked for me
best i found is a tutorial in youtube on link below
http://www.youtube.com/watch?v=zxIl4fUIXS4&feature=fvwrel
im not really sure on what im doing sice i dont know much about using php
i do know how to use asp.net and iis
in the tutorial he have a facebook.php downloaded from PHP SDK and index.php
i downloaded the facebook.php
and typed the content of his index.php on my notepad and saved as index.php
both file is found on my //localhost/facebook/firstpracticeapp/
i did try that that path works i put a sample.html file inside that and accessed is on browser using below just to see if it works and it does..
//localhost/facebook/firstpracticeapp/sample.html
now that i know it works i then setup the details of my app
used http://localhost/facebook/firstpracticeapp/ as Canvas URL
used http://apps.facebook.com/firstpracticeapp as Canvas Page
btw i edited the index.php as said on tutorial changing the app secret and app id to what was given to me...
not really sure what i missed but it says on tutorial if i run use my canvas page on browser it should display what is displayed on the tutorial
only thing i get is an error saying
HTTP Error 405.0 - Method Not Allowed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.
Detailed Error Information
Module DirectoryListingModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x80070001
Requested URL http:// localhost:80/facebook/firstpracticeapp/
Physical Path C:\FILES\Projects\facebook\firstpracticeapp\
Logon Method Anonymous
Logon User Anonymous
can someone tell me what seems to be the problem?
im thinking its the php i dont have enough info on how to use it
and i did it differently on what was on the tutorial cause i dont know idea what that phpacademy is for
if you guys know better link which is more detailed please reply with link
btw if you found spaces after http its because i cant post more than 2 links so i decided to put space there :)
many thanks
...nevermind, I was using out of date info.