已经Facebook的sharer.php改为不再接受详细参数? [英] Has Facebook sharer.php changed to no longer accept detailed parameters?

查看:829
本文介绍了已经Facebook的sharer.php改为不再接受详细参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直与URL打开一个弹出共享(通过window.open),如

<$p$p><$c$c>https://www.facebook.com/sharer/sharer.php?s=100&p[title]=EXAMPLE&p[summary]=EXAMPLE&p[url]=EXAMPLE&p[images][0]=EXAMPLE

和直到上个月一些未知点左右,一切都很好。

什么是现在发生的;弹出的对话框出现,并正确地包括由查询字符串参数提供的标题,描述,图片和网址,但后提交时,在Facebook上所产生的墙后缺少标题,描述和图片,虽然它仍然链接到正确的URL。

有谁知道是否已经有可能突然停止这个工作,从最近的变化?

pre-先发制人一些常见的反应:


  • sharer.php网址是德precated - 用法似乎继续其
    似乎是共识是,它在很大程度上被认为是
    坚持围绕 - 我还没有看到任何具体迹象表明,它
    应该突然停止工作 - 可能错过了什么


  • 使用JavaScript SDK / OG这些元标签 - 在我的具体不可能
    情况 - 只相信我......我可以解释一下,如果你真的想,但
    它真的不相关的。


  • 使用饲料对话 - 不适合由于缺乏支持
    与FB页的附件发布



解决方案

的Facebook不再支持 sharer.php

自定义参数

  

共享者将不再接受自定义参数和Facebook将
  拉正在显示在preVIEW相同的信息
  的方式,它会在Facebook上表现为从URL OG元后
  标签。


使用对话框/饲料代替sharer.php

  https://www.facebook.com/dia​​log/feed?
  APP_ID = 145634995501895
  &安培;显示器=弹出和放大器;标题=一个%20example%20caption
  &安培;连接= HTTPS%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fdialogs%2F
  &安培; REDIRECT_URI = HTTPS://developers.facebook.com/tool​​s/explorer

从FB小组官方答案

We have been opening a sharing popup (via window.open) with the URL like

https://www.facebook.com/sharer/sharer.php?s=100&p[title]=EXAMPLE&p[summary]=EXAMPLE&p[url]=EXAMPLE&p[images][0]=EXAMPLE 

and until some unknown point in the last month or so everything was fine.

What is happening now is; the popup dialog appears and correctly includes the Title, Description, Image and URL provided by the query string parameters, but when the post is submitted, the resulting wall post on Facebook is missing the Title, Description and Image, though it still links to the correct URL.

Does anyone know if there have been recent changes which could have suddenly stopped this from working?

Pre-empting some common responses:

  • "sharer.php URL was deprecated" - usage seemed to continue and it seemed the consensus was that it was largely considered to be sticking around - I haven't seen any specific indication that it should have suddenly ceased working - might have missed something

  • "Use JavaScript SDK/these OG meta tags" - not possible in my specific situation - just trust me ... I can explain if you REALLY want but it's really not relevant.

  • "Use the feed dialog" - not suitable due to lack of support for posting with attachments on FB pages

解决方案

Facebook no longer supports custom parameters in sharer.php

The sharer will no longer accept custom parameters and facebook will pull the information that is being displayed in the preview the same way that it would appear on facebook as a post from the url OG meta tags.

Use dialog/feeds instead of sharer.php

https://www.facebook.com/dialog/feed?
  app_id=145634995501895
  &display=popup&caption=An%20example%20caption 
  &link=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fdialogs%2F
  &redirect_uri=https://developers.facebook.com/tools/explorer

Official answer from fb team

这篇关于已经Facebook的sharer.php改为不再接受详细参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆