dongyan2469 2012-05-08 10:05
浏览 49
已采纳

如何使用Facebook PHP-SDK发送CUSTOM邀请?

I'm developing a simple Facebook application, and now I need to create a page where the user can invite friends.

Two questions about it:

  1. How can I send invite using the PHP-SDK ?

  2. Can I send custom invite? with "custom" i mean that I must to know how many users have been invited by user. How can I do it?

  • 写回答

1条回答 默认 最新

  • dongmei2957 2012-05-08 10:33
    关注

    Have you attempted anything or do you have any code to show us? It sounds like you're just asking for the code especially as it is custom. You could try getting a list of users friends, and have a checkbox by each one, then you can access the array of who they selected. Then look at publish_actions permission - though I don't think it would be the best performance wide to loop through each friend and make a graph post to them on behalf of the user. I know you want a custom solution but to be honest your best bet maybe to use the native friend selector and the js-sdk

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

    Then use the callback and some ajax to save the information you require. Look at the requests example here as well

    https://developers.facebook.com/tools/console/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥200 关于#c++#的问题,请各位专家解答!网站的邀请码
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号