Hi, guyz. I'm kinda lost on how to do this. I wnat to connect from a facebook application that i have to a database in my own custom server, that i'm working on. I've connected with the right connection parameters from facebook to my server for inputing records, but it's not connecting and working, what could be wrong? do i have to set access for a specific ip address? or some other configuration, thanks.

It depends on your host. Most hosts I know allow remote connection only if you specifically whitelist an IP address. In case of a facebook app I doubt it runs on one specific address. Perhaps a better option would be to create a REST or SOAP API.