ページのアルバムを作成しようとしていますが、次のエラーが表示されます。APIを使用してページにアルバムを追加する(PHP)
[15 9月2011夜十時38分14秒] PHP致命的なエラー:キャッチされないOAuthException:(#100)Cでスローアルバムの所有者 の無効なID:\ INETPUB \ wwwrootの\ Diveengine \ V3 \ Facebookの\ base_facebook。私は私のプロフィールのためにアルバムを作成することができた
require 'facebook.php';
$facebook = new Facebook(array(
'appId' => "aaaaaaaaaaaa",
'secret' => "aaaaaaaaaaaaaaaaaaaaa",
));
$facebook->setAccessToken("aaaaaaaaaaaaaaaaaaaaa");
$me = $facebook->api('/me');
//At the time of writing it is necessary to enable upload support in the Facebook SDK, you do this with the line:
$facebook->setFileUploadSupport(true);
//Create an album
$album_details = array(
'message'=> 'test album',
'name'=> 'Test Album'
);
$create_album = $facebook->api('/pageid/albums', 'post', $album_details);
// I have the page ID
//Get album ID of the album you've just created
$album_uid = $create_album['id'];
を次のようにライン上のPHP 988
コードがある、しかし私は、ページのためにこれをしたいです。
最後に、ページのアクセストークンを取得する方法を検討しました。 – Ben
これは "このリソースを要求するためにアクセストークンが必要です"と伝えます。 – JosFabre