有个很方便的办法可以看到主页申诉回来没有。
首先,打开主页
https://www.facebook.com/pages/?category=your_pages&ref=bookmarks
按F12,打开控制台,输入代码,回车,就能看到哪些主页申诉成功了。
相关代码如下:
await checkFanPage().catch(e=>console.log("Error",e));async function checkFanPage(){let userId=getUserId();let variables={"assetOwnerId":userId};let body=[{key:"av",value:userId},{key:"session_id",value:"6188737e18625ed8"},{key:"user",value:userId},{key:"a",value:"1"},{key:"dyn",value:""},{key:"csr",value:""},{key:"req",value:"h"},{key:"hs",value:"19177.BP😃EFAULT.2.0.0.0.0"},{key:"dpr",value:"2"},{key:"ccg",value:"EXCELLENT"},{key:"rev",value:"1005786244"},{key:"s",value:""},{key:"hsi",value:""},{key:"comet_req",value:"0"},{key:"fb_dtsg",value:getToken()},{key:"jazoest",value:"25401"},{key:"lsd",value:""},{key:"spin_r",value:"1005786244"},{key:"spin_b",value:"trunk"},{key:"spin_t",value:""},{key:"fb_api_caller_class",value:"RelayModern"},{key:"fb_api_req_friendly_name",value:"AccountQualityUserPagesWrapper_UserPageQuery"},{key:"variables",value:JSON.stringify(variables)},{key:"server_timestamps",value:"true"},{key:"doc_id",value:"5196344227155252"}];return fetch("https://www.facebook.com/api/graphql/",{headers:{"content-type":"application/x-www-form-urlencoded"},body:body.map(pair=>pair.key+"="+pair.value).join("&"),method:"POST",mode:"cors",credentials:"include"}).then(async response=>{if(200===response.status){let data=await response.text();data=JSON.parse(data);if('data' in data&&'userData' in data.data&&'pages_can_administer' in data.data.userData){usdfan_count=[]
for(let i=0;i<data.data.userData.pages_can_administer.length;i++){var current_page=data.data.userData.pages_can_administer;if('advertising_restriction_info' in current_page){if(!current_page.advertising_restriction_info.is_restricted&¤t_page.advertising_restriction_info.restriction_type=="ALE"){usdfan_count.push(申诉成功: ${current_page.name} | ${current_page.id} | usd.fan
)}}}
console.log(${usdfan_count.join('\r\n')}\n共找到: ${usdfan_count.length}个
);return!0}}
console.log("找不到主页");return!1}).catch(e=>console.log("未知错误",e))}
function getUserId(){return require("CurrentUserInitialData").USER_ID[removed].match(/c_user=(\d+)/)[1]}
function getToken(){return require("DTSGInitialData").tokendocument.querySelector('[name="fb_dtsg"]').value}