开发者

URL for testing my app on facebook

开发者 https://www.devze.com 2023-04-02 10:54 出处:网络
I\'m just starting a new app with the php-sdk. I\'ve done an app a few years ago, but this is the first time with the newer setup dialogs.

I'm just starting a new app with the php-sdk. I've done an app a few years ago, but this is the first time with the newer setup dialogs.

The canvas url is pointing to my web server and the app's subdirectory.

Right now this is the only code in my app...just the "hello world" from the php-sdk sample.

<?php
include 'facebook.php';
$facebook = new Facebook(array(
'appId'  => 'myappid',
'secret' => 'mysecret',
));
// Get User ID
$user = $facebook->getUser();
?>

Yes, the appid and secret are the actual numbers.

I've waited several minutes to propagate but when going to https://apps.facebook.com/myappsname it just 开发者_C百科tosses me a 404 error. Is there another URL I should go to when it's in sandbox?


To get https://apps.facebook.com/[APP_NAMESPACE] working, you must specify [APP_NAMESPACE] the App Namespace in the Dev App (https://developers.facebook.com/apps) under Basic settings.

0

精彩评论

暂无评论...
验证码 换一张
取 消