iframe - Facebook Application Requests: How to determine who's invited whom? -


we're build facebook application run inside xfbml iframe. found tutorial (kudos author). right now, there's 1 more issue need deal with.

basically, wanted know how determine uid of person invited friend join application. example, user invites user b join cool-app. user b sees application request, , responded accepting invitation. question is, how going know user b referred user a?

help please.

well, luckily found closest possible answer.

fbml has fb:req-choice tag use inside fb:request-form. can embedded in content attribute of latter.

it looks this:

<fb:req-choice url="url_here" label="button_text_here"/> 

..where url_here application-base-url plus relative path somewhere so:

http://apps.facebook.com/my_cool_app/path/to/somewhere 

e.g:

http://apps.facebook.com/my_cool_app/users/invite/referred-by/1234567890 

this button user "accepts" or "confirms". when triggered, fb redirects link provided.

that's it. rest application.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -