【问题标题】:simple sharing code on facebook error OAuthException 104facebook错误OAuthException 104上的简单共享代码
【发布时间】:2016-02-28 05:45:23
【问题描述】:

我有一个 php 网站,在 facebook 和 Sharethis 按钮和脚本上共享代码。 head 标签包含 fb:app_id, og:title, og:url,og:image 但调试 URL 显示如下错误

  {
   "error": {
   "message": "An access token is required to request this resource.",
   "type": "OAuthException",
   "code": 104,
   "fbtrace_id": "GO7opPlWLTI"
   }
 }

调试页面显示此错误

fb:app_id hasn't been included in the meta tags. Specify the app ID so that stories shared 
to Facebook will be properly attributed to the app. Alternatively, app_id can be set in url 
when open the share dialog. Otherwise, the default app id( 966242223397117 ) will be assigned

当我使用图表将页面显示为 facebook 获得的页面时,我根本找不到 head 标签。在php中它包含在每个页面中,并且我页面的源代码没有错误。

【问题讨论】:

    标签: php facebook-graph-api sharing facebook-social-plugins


    【解决方案1】:

    转到以下页面: https://www.facebook.com/insights

    然后使用“创建应用程序”和“添加您的域”按钮为您的网站生成应用程序 ID,以包含在您网页的元标记中。

    <meta property="fb:admins" content="xxxxxxxx" />
    <meta property="fb:app_id" content="yyyyyyyy" /> 

    【讨论】:

    • 现在 facebook url 调试器无法从网页获取任何信息,希望这是一个常见问题,现在它无法检测到添加 id 或页面标题,因为它以前工作过
    • Facebook 可以获取正确的数据,但插入管理员 ID 后问题仍未解决,仍然出现相同的错误
    • 页面地址是什么
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-03-30
    • 1970-01-01
    • 2017-07-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多