Create for the version 6 of module, here the issue for the version 7 http://drupal.org/node/1431826
What I know :
It will be not possible to have request on external website, cause we will obligatory to use the canvas page. So today when you said a request with FBML you have no notification and one link in tab application which is disable (when you clic it append nothing). But if you write the url of canvas in your facebook api (on developpers.facebokk site) you have one notification wich work fine but always a link wich have no effect. I try to make it with the new way, with the js JDK, but I confess that I am bad JS developper. Here the exemple of friend request in new way : http://developers.facebook.com/docs/reference/dialogs/requests/ but "Requests are only available for Desktop Canvas apps and not websites" ....
Comments
Comment #1
musa.thomasSo i make simething I hope it make in a good way :
Hook menu : one page for the redirection in canvas and one for callback ajax exclude id.
Here the javascript :
So you can have the dialogue form to call with this link
I'm sorry for the comments and some wording in french.
This code need few review like token
Comment #2
Dave Cohen commentedThanks for sharing. Unfortunately I have to confess I don't understand exactly the problem you're trying to solve. I know facebook has deprecated FBML but I'm not sure whether they mean FBML or the newer XFBML. All the XFBML tags still work, as far as I know.
Have you seen the fb_friend.module? It has some helpers for doing invite forms. Like the one that appears on the last page of the drupalforfacebook.org tour: http://apps.facebook.com/drupalforfacebook/node/7/dff_tour/form
It would be easier to consider the change you're suggesting if you made it a patch to that module.
Comment #3
musa.thomasI make test with the fb_friend module and it send a request but there some problème after :
-It doesn't make notification on Facebook (if you don't write canvas page in your Facebook application)
-The link wich apear in application have no effect, when you click on it there nothing happen
-I don't know if the Fb_friend module delete the request on facebook.api as facebool recommended "It is the Developers' responsibility to delete a Request once it has been accepted. For more information on how to delete a Request, please see the Deleting Requests documentation."
-Sometimes unlimited javascript load(don't load)
I will clean up the code if have got times (cause many work now)
* I report it on developper facebook, and they say" ok thank for report just FBML is depreciated." and close ticket with status "won't fix"
Comment #4
musa.thomasJust one question, have you fill in the https canvas url? cause for me not and when you click on link of invitation send (in facebook) it write that this url is not secure.
Try to clean the code tonight
Comment #5
Dave Cohen commentedThe latest, rc.5 or .dev, will try to provide secure callbacks. its worth an upgrade.
Comment #6
musa.thomasmmmm I'm not sure to understand your last answer but for me it was a question for https for canvas page wich are obligatory on Facebook (cause with the new request dialog canvas page are obligatory). But I find the solution, the cloud services : http://devcenter.heroku.com/articles/facebook after to hav'nt the canvas page i force the redirection on it to my siteweb.
Have you try your request? I mean the request with fb_friend module? I try on your site and I can confirm that the links wich appear on Facebook have no effect, when you click nothing happen.
Comment #7
Dave Cohen commentedThere is an issue with the invitations. Something about the API has changed, I don't know exactly what, but I confirm that invites from drupalforfacebook.org are being delivered, but not working properly.
I'll look at your code in more detail when I have a moment...
Comment #8
mayur.pimple commentedHi
Invite friends is working fine on following tutorial.
checkout this links.
http://thinkdiff.net/facebook/php-sdk-3-0-graph-api-base-facebook-connec....
I have done on my custom module. this weekend i will try send code.
if you have urgency then contact me: mayurpimple12@gmail.com