【问题标题】:URL Fetch App doesn´t fetch the desired URLURL Fetch App 无法获取所需的 URL
【发布时间】:2021-01-25 15:59:07
【问题描述】:

我正在尝试将数据从 Facebook mkt api 导入谷歌表格,但是,有一些 URL 似乎工作正常,但还有一些 URL 返回错误“异常:无效参数:”

有效的网址是这个: https://graph.facebook.com/v9.0/act_57968134*****?access_token=***********

无效的网址是这个: https://graph.facebook.com/v9.0/act_57968134****?fields=campaigns{name}&access_token=***********

enter image description here

有人知道为什么会这样吗?我尝试了在 github 中找到的其他代码,但它是相同的,该特定 URL 存在问题...

非常感谢

【问题讨论】:

  • 您是否尝试过使用过滤campaigns 参数和使用JSON.stringify?您可以参考这篇文章了解更多信息:stackoverflow.com/questions/58658777/…
  • 这可能需要特殊字符 { 和 } 的正确 URL 编码。

标签: facebook google-apps-script google-sheets urlfetch


【解决方案1】:

感谢 Carlos M 找到了答案! Facebook Graph API not working on UrlFetchApp

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-10-28
    • 2021-08-26
    • 1970-01-01
    • 1970-01-01
    • 2017-08-28
    • 2014-01-24
    • 1970-01-01
    相关资源
    最近更新 更多