In my current .NET and FBML-based facebook app, I have some code that looks like this:
<fb:request-form action="http://mysite.com/InvitesSent.aspx" method="POST" invite="true" type="SomeType" content="Here is an invite to <fb:req-choice url='http://mysite.com?<%=Params %>' label='My site' />"> <fb:multi-friend-selector max="20" actiontext="Invite your friends!" showborder="false" rows="4" bypass="cancel" email_invite="false" exclude_ids="" /> </fb:request-form>
This pops up the multi-friend selector on my site from which the user selects some friends and presses ‘send invitations’ at which point the user is redirected to http://mysite.com/InvitesSent.aspx.
At the other end, the recipients of the invite see a notification with an ‘Accept’ button. When the button is pressed, facebook redirects immediately to my site with
which is facebook’s external link redirect thing. This redirect includes the parameters I supplied in the fb:req-choice url attribute.
I can send notifications with FB.ui and apprequest, but I don’t appear to be able to tack on parameters to the URL as I can in FBML. I need this since I wish to reward the inviter and for that I need to be able to track individual requests.
Is any of this even possible in the new SDK? The documentation is confusing and sometimes makes distinctions between requests and invites, and sometimes not. To be honest, I’m not really sure if there is a difference, I’m just clinging on to clues in the FBML such as ‘invite=”true”‘ that might help me to divine a solution.
How do I send a friend request to a known user in Facebook? (Android)
I have read this https://developers.facebook.com/docs/android/send-requests#notifications tutorial, And I didn’t understand How do I send friend request to a known user in Facebook (In Android applica
How do I programmatically add rel=“external” to external links in a string of HTML?
How can I check if links from a string variable are external? This string is the site content (like comments, articles etc). And if they are, how do I append a external value to their rel attribute? A
How do I send request headers?
How do I send request headers ? Suppose I want to send my own request header when I make an HTTP request to a website. How do I do that ? URL url = new URL(urlString); HttpURLConnection connection =
How can I add a menu entry that links to an external site?
I would like to add a main tab to my plone site, that links to an external site in a new window. I understand how to do this in a static html page, but I’m unsure how to do this the Plone way. When
Send HTTP POST request to external site using
I want to send a HTTP post request to another server using <h:form> component. I can send a POST request to an external site using HTML <form> component, but <h:form> component does
How do I collect all external links in Sphinx?
I have to put some external links in a manual, and want to have, at the end (of section or even the whole book, not important), a list of all links, without repeating them manually. How can I do this?
How to send facebook api batch request with node.js
How do I send facebook api batch request with node.js? FB’s examples do not work.
how to send friend request on facebook using koala gem?
I am using rails 3 & koala-1.4.0. After login facebook account..I want to send a invitation request to a friend but no idea how to do it? how to send friend request on facebook using koala gem?
How do I make a request to an external site from a content_script
I am trying to make a chrome extension that will display a popup in my Gmail that will contain some information from my external server, say today’s weather. What I have tried I have tried including
How do I embed a Facebook profile on an external website?
How do I embed a Facebook profile on an external website; including status updates, fans, and everything.
It’s not possible anymore, which is evident from the following paragraph in the developer documentation
If a user clicks ‘Accept’ on a request, they will be sent to the canvas URL of the application that sent the request. This URL will contain an additional parameter, request_ids, which is a comma delimited list of Request IDs that a user is trying to act upon:
http://apps.facebook.com/[app_name]/?request_ids=[request_ids] As a best practice when the the user lands in your app you should read outstanding app requests. If the user clicked on a notification or request from the Dashboard you will be passed the request ID via the URL. Then as the user handles the request(s) you should delete them via the Graph API.
Requests 2.0 requests will not get deleted when a user clicks on accept in Facebook’s API. You must read and clear them using the Graph API.
So what you can try is this :
When a new user comes read the request_id and reward the user who sent the request.
If you can tell me what happens when a user sends a request from an external web site and another user accepts, with the new JS SDK, i can be more specific with the solution. Basically if you keep an eye on the browser url, you’ll come to know how facebook is redirecting the new user who accepted. In the documentation accepting is mentioned only for canvas apps, so i’m not sure what happens for an external site. If you test it we can figure it out.
As Igy suggested, i guess accepting a request will always redirect to the canvas.