SendRequest

Jul 27, 2007 at 7:17 PM
Hey All,

I am new to facebook development.

I have an application that display some text and link to invite friends. i have i got friend list working using GetFriendsNonAppUsers() function.

Now i am trying to send request using SendRequest() method and its not working.
SendRequest("<fb:req-choice url=\"http://apps.facebook.com/newsfeedap/\" label=\"News Feed (CityNews)\"></fb:req-choice>\";", toList, "request", _img, true);

toList is userids comma separated.

When i execute this function i don't get any error message, but the user is not getting any request.

i want to send a request to friend list to add my application.


Thanks,
apsa
Jul 31, 2007 at 9:09 PM
i got this working.



apsa wrote:
Hey All,

I am new to facebook development.

I have an application that display some text and link to invite friends. i have i got friend list working using GetFriendsNonAppUsers() function.

Now i am trying to send request using SendRequest() method and its not working.
SendRequest("<fb:req-choice url=\"http://apps.facebook.com/newsfeedap/\" label=\"News Feed (CityNews)\"></fb:req-choice>\";", toList, "request", _img, true);

toList is userids comma separated.

When i execute this function i don't get any error message, but the user is not getting any request.

i want to send a request to friend list to add my application.


Thanks,
apsa

Aug 3, 2007 at 3:12 PM

Hi, I am doing the same thing for the first time - I just wondered what you did to get it working as I have the same problem as you?
Many thanks!
Aug 7, 2007 at 2:34 PM
url= this._fbService.SendRequest("<fb:req-choice url=\"http://apps.facebook.com/urapp/default.aspx\" label=\"Add Application\" ></fb:req-choice>", toList, "application", img, true);
if (url.Length > 0)
{
Response.Write("<script type=\"text/javascript\">\nif (parent != self) \ntop.location.href = \"" + url + "&next=" + Server.UrlEncode("?next=http://apps.facebook.com/newsfeedap/default.aspx") + "\";\nelse self.location.href = \"" + url + "&next=" + Server.UrlEncode("?next=http://apps.facebook.com/newsfeedap/default.aspx") + "\";\n</script>");
Response.End();
}

now i am having problem once user confirm the sending of request. once user click confirm or forget it button i am loosing facebook template (IFRAME). i try &next url, but its not working.

Thanks,
Aug 29, 2007 at 5:05 AM
I wrote the same code given by you changing few fileds but it gives me url="";

so can you send me the sample code how you acheved this.

Thanks