I have downloaded php-sdk for using facebook in php. I also created facebook application in the facebook web page in order to get API key and secret key.
When I run example.php and try to connect to facebook it shows me the following error:
Configuration errors: To fix this error, please set your Connect URL in the application settings editor. Once it has been set, users will be redirected to that URL instead of this page after logging in.
I am using this php-sdk in the localhost. I tried to assign localhost as Connect URL but facebook doesn't accept it. I have read about Cross Domain Communication Channel and think this is what I need. But I don't know how to use it.
Anyone can help me to solve this problem please?
Update
Actually what I need is following. I have Web Application and need to connect to facebook and search for users in facebook who has specific(user will specify this) Likes and Interests. Any idea about solving my problem?