Reputation: 126547
How are we supposed to send requests on Facebook if Facebook is in the process of deprecating FBML? Is there another way?
Upvotes: 3
Views: 829
Reputation: 2987
And there is the option of the send button as a tag http://developers.facebook.com/docs/reference/plugins/send/ This is not deprecated right???
Upvotes: 1
Reputation: 126547
Found it! (Well, I didn't, but my friend did.)
Facebook Requests Dialog - JavaScript SDK
Facebook was hiding it! :)
It's really cool. Much better than old requests. You can store custom data in them and access it through the Graph API!
Note to self: "Read the documentation thoroughly."
Upvotes: 3
Reputation: 1059
According to this part of the documentation it will be possible to achieve through dialogues.
Please note, we are in the process of moving this functionality to Platform Dialogs which will remove the requirement for the use of FBML.
At the moment I couldn't find anything about inviting friends yet (Friend Dialog is misleading - it's about adding new friends) but I suggest you keep an eye on updates here.
I would say use FBML for now because it will take some time before it is officially deprecated (it was announced a long time ago) but check up on the new methods so that you can implement it as soon as possible.
Upvotes: 1
Reputation: 11065
Currently there is no other way..Facebook is updating the graph api and message part.So you can use FBML itself for the current use.You can use request-form and multi-friend-selecto to send the request.
<fb:request-form
action="start.htm"
method="POST"
invite="true"
type="sample network"
content="This network is the best place on Facebook for viewing, sharing and giving
friends the highest quality stuff. Join me on this network!
<fb:req-choice url='http://www.facebook.com/login.php?api_key=<c:out value='${apiKey}' />'
label='Check out this network!' />
">
<fb:multi-friend-selector
showborder="false"
actiontext="Invite your friends to this network."
exclude_ids="<c:out value='${appUserFriends}' />"
max="20" />
Upvotes: 1