Facebook.showdialog apprequests returns nothing and inviting never sent

Hello

I encountered a problem that i wish once and for all to get it done right with your help if able:

I try inviting friends to play my game using the facebook.showdialog(“apprequests”, {message=“download and play this game NOW!!!”}). for some reason after i see the dialog and choose friends from the list nothing happens. my brother who is roled as a tester in facebook for the app never gets the invitation.

I checked countless of references and forums to see a few who encountered a similar problem (and a few that solved this by updating to a newer daily build which incuded the fix for that, however that was in 2013)

see reference :

http://forums.coronalabs.com/topic/36515-facebookshowdialog-doesnt-return-a-response-on-android-but-does-in-ios/

I saw others that talked about doing the same and having the same problem, which they solved by adding support for facebook canvas on their facebook app setting (though the app is not a facebook app), from what i understood, facebook need know where to lead the “friend” to (link) so they are lloking for a canvas version of the app.

Can that be solved by adding different options to ‘attachment’ like this:

local attachment = {

        message=“download app or else…”

        link=“http//:myWebPage.com”

        picture=“http//:myWebPage.com/myGame.png”

}

or something like this? do I have to add support for canvas version though i dont have one?

And above all : why no invitation is being sent? why there is no response after I choose ‘send’ on the dialog?

Thanks ahead for any advice or help (my code is very simple and includes facebook login, facebookListener, and a button that activates the ‘showdialog’).

Did you find a solution for this ? I have the same problem.

Hey, nmichaud.

Well, yes and no, that would have to be my answer.

I discovered all sort of things that are connected to this and are probably the cause, but in the meantime I left it a side.

This will probably help you to know:

  1. We tried checking if the facebook account got the invitation. On a few occasions it did. but then it would desappear once you clicked on it, and never shown in your recent invitations list. just gone.

  2. While digging into it a bit more, I found out that You must connect a facebook canvas page to it, so it knows where to direct the account receiving the invitation to. There is no particular link otherwise connected while you send an invitation. That means that you should fill up a facebook app page and put something into it, even if you do not have a facebook game, I heard developers just put in some kind of a one page ad for their game, which leads to their website or google play store. (Use adobe flash with an image of your app or something and upload it as a facebook app)

We kind of stopped here, and left this process open for when we see we have more time to put into it.

For our app eventually, we just used a POST of an image of our game to the user wall.

I hope it was helpful to you, best of luck.

If you manage to get something to work, I would really appreciate it, if you could update me on this post, so we can clarify this somewhat not well defined subject.

Saiphan Brunner

Thanks for the information Saiphan,

I will give you the recipe if we manage to get it work :).

Nick

Did you find a solution for this ? I have the same problem.

Hey, nmichaud.

Well, yes and no, that would have to be my answer.

I discovered all sort of things that are connected to this and are probably the cause, but in the meantime I left it a side.

This will probably help you to know:

  1. We tried checking if the facebook account got the invitation. On a few occasions it did. but then it would desappear once you clicked on it, and never shown in your recent invitations list. just gone.

  2. While digging into it a bit more, I found out that You must connect a facebook canvas page to it, so it knows where to direct the account receiving the invitation to. There is no particular link otherwise connected while you send an invitation. That means that you should fill up a facebook app page and put something into it, even if you do not have a facebook game, I heard developers just put in some kind of a one page ad for their game, which leads to their website or google play store. (Use adobe flash with an image of your app or something and upload it as a facebook app)

We kind of stopped here, and left this process open for when we see we have more time to put into it.

For our app eventually, we just used a POST of an image of our game to the user wall.

I hope it was helpful to you, best of luck.

If you manage to get something to work, I would really appreciate it, if you could update me on this post, so we can clarify this somewhat not well defined subject.

Saiphan Brunner

Thanks for the information Saiphan,

I will give you the recipe if we manage to get it work :).

Nick