Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook "apprequests" with Custom URL?

I have simple question, I am developing facebook app and using this code to make app requests

FB.ui({method: 'apprequests',message: 'Invite friends'}, requestCallback);

I want to set custom url when the user accept the request. for example: stackoverflow.com

any suggestions ?

like image 221
mokayyali Avatar asked Dec 02 '11 02:12

mokayyali


1 Answers

If a user clicks 'Accept' on a Request, they will be sent to the Canvas Page URL of the app that sent the Request with the request_ids

https://apps.facebook.com/[app_name]/?request_ids=[request_ids]

To do a custom URL 1) store the request_id in your application with the custom link 2) with the user accepts the link read the request_id and fire the custom url

like image 147
Atul Agrawal Avatar answered Nov 04 '22 16:11

Atul Agrawal