最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - facebook "apprequests" with Custom URL? - Stack Overflow

programmeradmin0浏览0评论

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 badges
Add a ment  | 

2 Answers 2

Reset to default 3

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./[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

发布评论

评论列表(0)

  1. 暂无评论