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
any suggestions ?
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.
any suggestions ?
Share Improve this question asked Dec 2, 2011 at 2:00 mokayyalimokayyali 1531 gold badge4 silver badges12 bronze badges2 Answers
Reset to default 3If 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./[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
There isn't a parameter for a url in the API, but you could use the data parameter for it.
FB.ui({method: 'apprequests', data: "http://stackoverflow." ,message: 'Invite friends'}, requestCallback);
https://developers.facebook./docs/reference/api/user/#apprequests