是否可以使用URL重定向向Facebook发送带有消息的图像

时间:2013-12-17 15:25:58

标签: php facebook dialog send

我可以使用网址重定向向Facebook好友发送消息,但现在我想附加带有消息的图片。我试图在网址上加一张图片,但没有任何反应。

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

我成功发送邮件,但图片没有附带邮件,我在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");
}
?>

1 个答案:

答案 0 :(得分:0)

似乎你无法发送图片。见facebook文档:

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

可用参数是:

  • APP_ID
  • REDIRECT_URI
  • 显示
  • 链接

NIMS