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/

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

报告相同问题?