how to setup your own facebook app - facebook

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.

Related

Google AdSense ERR_ADDRESS_INVALID

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.

Error using laravel localhost:8000 facebook Can't Load URL appdomain facebook login

I've seen a couple posts about this and blogs about this. I've tried their solutions and still running into the dreaded:
"Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings."
Some answers have said you need to add a platform in settings => basic and put the localhost address in there...
so..
Still get the error...
And other answers say you need to also have it set in the app domains on the same window. So, I put in "http://localhost:8000/" save it and it saves as:
And I still get the "can't load url..."
My host file has:
I'm starting to feel like this has been so difficult that the answer has to be something so simple. But how the heck do you setup the facebook details for local development/testing??
Every answer I'm finding seems to revolve around those 2 input fields within the facebook setup.
The url I'm on when I'm trying to call it is "http://127.0.0.1:8000/login". I'm trying to access it using the javascript sdk.
As I was typing that last sentence, with the idea that the answer was most likely a simple one I decided to try another solution.
I changed "http://127.0.0.1:8000/login" in my browser window to "http://localhost:8000/login"
And it fixed my problem. There goes several hours of my life, so hopefully this will help somebody else.

Facebook showing page not found when sharing link

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

Why does Object debugger say my URL is a facebook URL and isn't "scrapable"

In trying to create an "object" page for my first facebook app, I've run into some difficulty. I followed Facebook's Open Graph Tutorial nearly exactly.
After creating an "object" html page with the appropriate <meta property="og:... tags I tried running the URL through the Debugger Tool as suggested in the tutorial but I'm given the following error:
"Facebook URLs aren't scrapable by this Debugger. Try your own."
This page is in the same directory on my company's linux box as the canvas page, and is certainly not a "Facebook URL". If it matters, I'm using an IP instead of a domain name: xx.x.x.xxx/app/obj.html
...
I continued the tutorial anyway, but ultimately it does not seem to want to post a new action/object (is this even right?). I did however manage to get something to work, as in the app timeline view I apparently actioned one of those objects a couple hours ago. I assume this happened when I was pasting curl POST commands into the terminal.
I'm pretty new to the whole open graph, and facebook APIs, etc., so I'm probably operating under false assumptions of some sort, and I've been all over trying different things, but this error seems pretty bizarre to me and I can't seem to resolve it.
UPDATE
I just took the object page and put it on my own personal shared hosting acct. The debugger worked (inexplicably) fine on it, but I couldn't go too far since it's a different domain than the one authorized by my app.
Make sure og:url inside your html page does not point to facebook.
Also, make sure to look at the open graph protocol page (to see you formatted the og tags correctly.
Also, make sure the page is accessible to everyone, not just yourself.
Without knowing the URL it's hard to be sure, but it's most likely that your URL is either including a og:url tag pointing to a facebook.com address, or a HTTP 301/302 redirect to Facebook instead

How to make an URL independant Facebook Application?

I'm working on a new module for TomatoCMS. Here you'll be able to post new content on the website and forward is to a fanpage on Facebook (as page admin).
While experimenting and trying to get things working, it seems like I HAVE TO put an application url ... Is this correct?
So I won't be able to reuse the module on another URL?
Is there a way to make it re-usable? (Not URL-specific)
I'm working in PHP (with Zend Framework) and the phpSDK.
Thanks for your insight :-)
If i am getting it right you want to have your code module work on any other application's domain url. If this is the case then to admin pages you need access token which need appid and appsecret which are bount to the application url with you registered. so you can't do it without a url.
I know this is late (older post) but it might be helpful to someone else perhaps.
From what I understand, if you're not designing an on line application (lets say for a program that runs on Windows), you would use::
https://www.facebook.com/connect/login_success.html as your redirect.
And then to attach the required permissions to the call, you'd add it as such::
https://www.facebook.com/connect/login_success.html&scope=email,user_online_presence,sms,offline_access