从外部网站向 Facebook 好友发送礼物

发布于 2024-09-29 20:02:40 字数 719 浏览 1 评论 0原文

我尝试在我的网站上的网页上使用 XFBML:

<fb:serverfbml style="width: 755px;">
  <script type="text/fbml">
    <fb:fbml>
      <fb:request-form action="http://example.com/user/handleFacebookGiftSend" method="POST" invite="false" type="gifts"


<fb:multi-friend-selector

........................

向选定的朋友发送虚拟礼物(仅包含图像和消息) Facebook。

但随后它会作为应用程序请求(如添加应用程序的请求)发送,即使该应用程序已由接收礼物的用户添加。在这种情况下,应用程序不是 facebook canvas 应用程序,而是在 facebook 外部运行的外部 Web 应用程序。

这不是发送虚拟礼物的正确方式。理想情况下,这应该作为私人消息发送到用户 Facebook 收件箱,通知用户他有一份礼物,要查看礼物,请单击消息中给出的链接。但这个选项不可用。我的说法正确吗?

通知将是下一个最佳选择。这个也不能用吗?

如果以上都不可用,我如何将虚拟礼物链接发送给用户而不显示为应用程序请求?

非常感谢您的帮助,因为我在此处发布之前花了相当多的时间。

I tried to use XFBML:

<fb:serverfbml style="width: 755px;">
  <script type="text/fbml">
    <fb:fbml>
      <fb:request-form action="http://example.com/user/handleFacebookGiftSend" method="POST" invite="false" type="gifts"


<fb:multi-friend-selector

....................

on a webpage on my website to send virtual gift (consisting of simply an image and a message) to selected friends on facebook.

But then it is sent as application request ( like request to add application) even thought the application is already added by the user to whom gift is being sent. In this case the application is not facebook canvas application but an external web application running outside of facebook.

This is not right way to send a virtual gift. Ideally this should be sent as a private message to user facebook inbox informing the user that he has a gift and to view the gift, click on the link given in the message. But this option is not available. Am I right about this?

Notification would be the next best option. Is this also not available?

If none of the above available, how do I send the virtual gift link to user without showing up as application request?

Help would be greatly appreciated as I spent considerable amount of time on this before posting here.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悲欢浪云 2024-10-06 20:02:40

这可能会被使用,如果你扩展一个 MultyFriendSelector,你应该发送一个用参数指定的 URL,以便你根据参数返回到一个确定的方向,当用户单击请求时,你可以使用调用的返回,这个会将您发送到您在按钮链接中找到的方向 URL 进行确认。

例如,如果您想订购一份简单图像的礼物,您应该定义返回图像在服务器中的位置。

<fb:fbml>
  <fb:request-form
      action="index.php" 
      method="POST" 
      invite="false" 
      type="HalloweenMosters" 
      content="You have received a gift from HalloweenMosters. <?php echo htmlentities("<fb:req-choice url=\"http://apps.facebook.com/YOR APP/Gifts_Manager.php?key_api="YOUR AP ID&idGift=" "\" label=\"Send a gift\"") ?>"> 
    <fb:multi-friend-selector
       email_invite="false"
       import_external_friends="false"
       condensed='false'
       actiontext="To donate an adorable Monster to a friend" 
       showborder="false" rows="3" cols="4"/> 
  </fb:request-form>
</fb:fbml>

我希望镰刀能发挥作用...

This might be used, if you extend a MultyFriendSelector you should send an URL specified with parameters in order that it you comes back to a definite direction depending on the parameters, you might use the return of call when the user does click in the request, this one would send you to the direction URL that you find ordered in the link of the button to confirm.

For example if you want to order a gift that would be a simple image you should define in the direction of return the location of the image in your server.

<fb:fbml>
  <fb:request-form
      action="index.php" 
      method="POST" 
      invite="false" 
      type="HalloweenMosters" 
      content="You have received a gift from HalloweenMosters. <?php echo htmlentities("<fb:req-choice url=\"http://apps.facebook.com/YOR APP/Gifts_Manager.php?key_api="YOUR AP ID&idGift=" "\" label=\"Send a gift\"") ?>"> 
    <fb:multi-friend-selector
       email_invite="false"
       import_external_friends="false"
       condensed='false'
       actiontext="To donate an adorable Monster to a friend" 
       showborder="false" rows="3" cols="4"/> 
  </fb:request-form>
</fb:fbml>

I hope that sickle serves...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文