开发者

How can I track accepted invitation sender on facebook app?

Situation: user A send invitation to my fb app to his friends X, Y and Z. Users X and Y has accepted invitations, but user Z not.

How can I tr开发者_JAVA百科ack haw many users accepted invitations? I want to take some privileges for user A based on accepted invitations count.

Is there any method to track sender_id when invitation accepted?


Don't bother, it's not allowed by the policy.

Per section V.1.

You must not incentivize users to grant additional permissions or use Application Integration Points.

And per the documentation about Application Integration Points

By "Application Integration Point" we mean Application Info Section, Application tab, Feed, requests (including invites), Publisher, inbox attachments, Chat, Bookmarks, or any other feature of a user profile or Facebook communication channel in which or through which an application can provide, display, or deliver content directed at, on behalf of, or by permission of a user.


Actually, there is no need to additional permissions.

Using the next value, you can store the referring user id and referred user.

It's simply explained here: http://fbcookbook.ofhas.in/tag/tracking-invitation/


You actually can do this. I'm doing it for other reasons (tracking how people get to the app and other analytics type stuff). In the , you can set the url attribute of the button. For instance, mine is . That url does some processing that will be saved in my database saying that user with userId 9999 invited the current user. This is being used to tell us the successfulness of invitations (our original idea was incentivization like you, but they pointed that out in the policy too).


This is how I do it:

  • track the invites by looping over $_GET['to'] on your 'thank you page' and store these IDs (= to_id) against the current user ID (= from_id) in your DB.

  • When a new users signs up, compare the new ID with the to_ids the table. If it's a match, honor the corresponding from_id

Drawback: if somebody was invited by 2 or more ppl you don't know which invitation to honor. I just honor all invitations which makes everybody happy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜