페이스 북에서 제공하는 지침에 따라 도메인을 허용 목록에 추가하려고했으나 아무 것도 작동하지 않습니다. 내가 처음 컬과 노력도메인이 추가되지 않습니다. 허용 도메인 도메인 Facebook 북 메신저 확장자
응답은 {result:"success"}
하지만 난 그럼 내가 다음과 같이 노드 요청 모듈을 사용하여 시도 내가
{data:[]}
를 얻고 허용 목록에있는 도메인을 나열 할 때 :
request.post("https://graph.facebook.com/v2.6/me/messenger_profile?access_token=sfdlksdfu79r9429049824982342348sjdfsf", {
"setting_type": "domain_whitelisting",
"whitelisted_domains": ["https://mydomainw.com", "https://mydomainw.com/profile", "https://sfujyx.com/ofr", "mydomain1.com", "mydomain.com"],
"domain_action_type": "add"}, function (err, res, body) {
console.log("Whitelisting domain");
if (!err) {
console.log(body);
console.log("Showing the list of whitelisted:");
request.get("https://graph.facebook.com/v2.6/me/messenger_profile?fields=whitelisted_domains&access_token=sfdlksdfu79r9429049824982342348sjdfsf", function (err, res, body) {
if (!err) {
console.log(body);
} else {
console.log(err);
}
});
} else {
console.log(err);
}
});
내가 사용하는 경우
을 그리고 : 아직도 그것은 컬과 같은 결과를 가져 페이스 북 그래프 API 광고 Explorer의 도구, 여기에 내가 점점 오전 오류입니다 :
정말 끼 었어, 나는 내가 나해야하는지 모르는 사람들이 어떻게 메신저 확장 정확히 화이트리스트 도메인입니다.
내가 뭘 잘못하고 있니? 도메인이 추가되지 않는 이유는 무엇입니까?
내 프로젝트가 Google App Engine에 있습니다.
잘못된 API 경로를 사용하고 있다고 생각합니다. 대신 "/ me/messenger_profile"이어야합니다. –
{ "오류": { "message": "지원 요청이 지원되지 않습니다. 'me'ID가있는 개체가 없거나 사용 권한이 없어서로드 할 수 없거나이 작업을 지원하지 않습니다. https://developers.facebook.com/docs/graph-api " "유형 ":"GraphMethodException " "코드 ": 100, "fbtrace_id ":"BDenwqcm3BD " } }는 내가 얻는 반응이다 내가/me/messenger_profile @MichealVu를 넣었을 때 – aidonsnous
당신은 틀린 access_token을 사용하고 있기 때문에 위의 메시지가 나타납니다. 페이지 액세스 토큰을 가져와야합니다. –