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?
To search people based upon likes or interests, use the new Graph API, and parse the JSON.
For instance, this will search for anyone with an interest in Cheese:
https://graph.facebook.com/search?q=Cheese&type=user&access_token=YOURTOKEN
This way you don’t need any authentication, just an access token.
The resulting PHP code would be something like:
I’m off for a slice of Camembert.