【问题标题】:is it possible to send image with message to facebook using url redirection是否可以使用 url 重定向将带有消息的图像发送到 facebook
【发布时间】:2014-01-05 10:39:06
【问题描述】:

我可以使用 url 重定向向 Facebook 朋友发送消息,但现在我想在消息中附加图像。我试图在 url 上包含一张图片,但没有任何反应。

如果你知道如何完成这项工作,请帮助我。

我已成功发送消息,但图像与消息不相符,我在 recipent 收件箱中收到此错误 错误:This attachment may have been removed or the person who shared it may not have permission to share it with you.

这是我使用的代码

<?php
if(isset($_GET['receiverid']))
{
    $fbfid=$_GET['receiverid'];
    header("location:https://www.facebook.com/dialog/send?
    picture=http://www.educaptain.com/myecard.gif&
    message=jesus isgood&
    app_id=788167814543458&
    link=http://www.educaptain.com&redirect_uri=http://educaptain.com/egreetings-world/&
    to=$fbfid");
}
?>

【问题讨论】:

    标签: php facebook dialog send


    【解决方案1】:

    您似乎无法发送图片。请参阅 Facebook 文档:

    https://developers.facebook.com/docs/reference/dialogs/send/

    可用参数有:

    • app_id
    • redirect_uri
    • 显示
    • 链接

    NimS

    【讨论】:

      猜你喜欢
      • 2012-08-05
      • 1970-01-01
      • 2010-11-20
      • 2018-12-16
      • 2020-08-11
      • 2011-11-11
      • 2013-01-18
      • 2013-02-15
      • 2012-02-05
      相关资源
      最近更新 更多