我遇到了一些麻烦facebook graph api.我们使用graph api来更新facebook上的页面.问题是,对于某些页面,小时数不会更新(仅数小时).Facebook不会抛出任何错误,只是值不会改变.我试过koala并fbgraph为nodejs图书馆.
以下是打开营业时间更新的页面示例.
而这一个不工作.
这是请求正文:
{
"description"=>"This is a test description for NetworkProfile UK! Keep all of your listings up to date",
"general_info"=>"NetworkProfile UK London, InSights, NetworkProfile",
"phone"=>"02089610538",
"website"=>"www.innerballoons.com",
"keywords"=>"NetworkProfile UK London,InSights,NetworkProfile",
"location"=>{
"city"=>"London",
"street"=>"22 Highbury Grove",
"zip"=>"N5 2EF"
},
"country"=>"Netherlands",
"latitude"=>51.5504,
"longitude"=>-0.0970388,
"hours"=>{
"mon_1_open"=>"09:00",
"mon_1_close"=>"15:00",
"tue_1_open"=>"09:00",
"tue_1_close"=>"17:45",
"wed_1_open"=>"09:00",
"wed_1_close"=>"17:00",
"thu_1_open"=>"08:15",
"thu_1_close"=>"18:30",
"fri_1_open"=>"none",
"fri_1_close"=>"none",
"sat_1_open"=>"none",
"sat_1_close"=>"none",
"sun_1_open"=>"none",
"sun_1_close"=>"none"
}
}
Run Code Online (Sandbox Code Playgroud)
并回复facebook:
{"data"=>"true"} …Run Code Online (Sandbox Code Playgroud)