嗨,我有一个用PHP编写的Facebook feed小部件,该小部件从我页面上最近停止工作的Facebook组中检索内容。它的工作类似于以下示例:
$appID = 'MyAppID';
$appSecret = 'MyAppSecret';
//Create an access token using the APP ID and APP Secret.
$accessToken = $appID . '|' . $appSecret;
//The ID of the Facebook page in question.
$id = '428055143943342';
//Tie it all together to construct the URL
$url = "https://graph.facebook.com/$id/posts?access_token=$accessToken";
//Make the API call
$result = file_get_contents($url);
//Decode the JSON result.
$decoded = json_decode($result, true);
//Dump it out onto the page so that we can take a look at the structure of the data.
var_dump($decoded);
但是我如何理解它已被弃用,我不知道如何使用新方法来制作它。以前它是从页面返回提要,但现在输出看起来像这样:
{
"error": {
"message": "Error validating application. Application has been deleted.",
"type": "OAuthException",
"code": 190,
"fbtrace_id": "Egecvn/HON8"
}
}
以前,页面供稿中有内容。我检查了我的facebook应用程序,看起来没有任何删除,也没有显示警告