I can send requests to friends using “Multi Friend Request Selector” inside my Page Tab App, which link looks like :
https://www.facebook.com/<my_page_name>/app_<my_app_id>
My friend receives my request, and click “Accept”. It forwards to the real link of the Facebook App, which is :
https://apps.facebook.com/<my_app_name>/?fb_source=request&request_ids=<an_request_id>
which is not inside a Page Tab anymore. How can I forward to user to the 1st link instead of the 2nd while the request_ids have to be kept? Do I just make a header('Location: url'); forwarding?
p.s. Timeline is already in use.
Yes you have to forward to your page url, because requests always redirect to the canvas url.
To pass the request ids you can use the
app_datafield. So instead of redirecting tohttps://www.facebook.com/<my_page_name>/app_<my_app_id>you redirect tohttps://www.facebook.com/<my_page_name>/app_<my_app_id>?app_data=requestids. Here requestids are the actual values(the comma separated list that the canvas gets).app_datais available to your page tab app as part of thesigned_requestit receives.From docs: