How to configure my application php sdk (facebook) -


i'm trying create first login php sdk, apparently have bad configuration of application, have made simple code learn sdk not run well, please make right. here sample code:

require_once("src/facebook.php");  $config = array(); $config['appid'] = '{app id}';  $config['secret'] = '{app secret}';  $config['fileupload'] = true;  $facebook = new facebook($config);  echo $facebook->api('/me');  echo $facebook->getuser(); 

so far comment, think facebook app configuration issue.

logged in facebook ie. https://developers.facebook.com. -> apps ->open app in edit mode. find "website facebook login". here put domain name, running app.

http://yourdomain 

for development purpose, can set

http://localhost/ 

in textbox.

also set "app domains" same above. try again. hope problem solved.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -